If there are problems with your phone, that could delay the process, while the 2FA code is only valid for 30 seconds.
Instead, you can use Authy app for 2FA: https://authy.com/download/
Download the Desktop version, not the phone app because you may encounter the same problem.
It's a good app, you can add multiple accounts, so you can use it for more websites as 2FA.