If you are failing on 2 factor authentication then you can either use a non Chrome related browser &/or incognito mode to request the code or use the recovery code which was shown during 2fa setup.
Otherwise:
https://learn.microsoft.com/en-us/answers/questions/5920985/how-to-fix-we-will-send-a-verification-code-to-mod
Check the Answer by "Hornblower409, dated Jun 25 2026" for a potential solution.
Is there a reason why you need to change the password on the account? If you’ve forgotten it then check he browser’s inbuilt password manager to see the details have been saved during account log in.
Otherwise is there any error message when adding the account to an email client/accessing the email account via the web?