Hi there,
I'm Cherrelyn and I'm here to help.
It sounds like the password reset is stuck in a server-side loop. When this happens, there’s no way to bypass it yourself. The only option is to wait and try again later, making sure not to request too many codes in one day or contact Microsoft support directly https://support.microsoft.com/ to have them clear the block and help reset your password.
I hope this will help and If you have any question please feel free to ask.
Warm regards,
Cherrelyn