That message means too many codes were requested in a short time, so sending new codes is blocked for a while. Wait at least 24 hours without requesting any new code, because each new attempt can restart the block. If it still shows the same message after that, wait a few more days, it can take up to a week.
When you try again, request only one code. If you have an alternate email on the account, choose it to receive the code, and try on a different network (for example, mobile data instead of Wi-Fi).
If you still can't sign in, use the Sign-in Helper, it checks the account and shows the right path: https://aka.ms/SignInHelper