Apologies for getting late back to you. The error which you are getting is because of authentication failure. Could you please check the server key which you uploaded is correct (FCM console -> Project Settings -> Cloud Messaging -> Legacy Server key).
In case you still face any issue, please let me know. I will be happy to assist you.