A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation
This especially happens when MFA was previously set up, partially set up, or enforced by your organization. You’re not doing anything wrong , your account is stuck in a state where it requires MFA to sign in, but you don’t have any valid MFA method registered, so it keeps asking for a code you cannot generate.
Please try connecting with the administrator for resetting your MFA