You can change the phone number where SMS verification codes are sent.
If the system says the verification code you entered is incorrect, request a new code and enter it as soon as it’s received. Codes expire after a short time for security purposes.
Restart your phone to refresh network connectivity and try two-step authentication again.
You can sign in using your backup code or remove two-step authentication from your account.
To safeguard against future SMS issues, you can enable an authenticator app as a secondary two-step authentication method.