Problem Connect google account to huawei p10 lite


Hello, a friend recently asked me for help in unlocking his phone locked by the child, who entered her fingerprint or pin and later could not unlock it and we had to give it a hard reset, all good until the address by gmail... the account being made by another acquaintance that we called to unlock his phone, I put in the old gmail address, he got the confirmation code on the phone, then an error and it goes back to the first step with language selection.
I tried methods of bypassing the Google account, but they no longer work.
What else could I try?
Thank you in advance