What causes an FRP(Factory Reset Protection) lock?
If your device has been lost or stolen, and has been Factory Data Reset in an untrusted environment, this will trigger the FRP lock.
Problem Causes:
After the factory is restored, when you use it again, you need to log in to the Google account before the factory restoration for authentication. If the authentication fails or is not authenticated, the installation of the apk will report an abnormality of frp. This is the security setting of Google. Thank you.
Please verify your Google Account(Has signed in this device) to unlock the FRP lock.

If the above is not working, please back up your data and visit the nearest authorized realme service center with the invoice for testing.