Hello,
Here are a few steps you can try to regain access:
Use Backup Codes: If you have previously set up backup codes, you can use one of those to sign in.
Alternate Authentication Methods: Check if you have set up any alternate authentication methods, such as a phone number or another email address, that you can use to verify your identity.
Microsoft Authenticator App: If you have the Microsoft Authenticator app installed on another device, you might be able to use it to generate a code.
Account Recovery: Visit the Microsoft account recovery page and follow the steps to recover your account. This process might allow you to regain access without needing the QR code.