To change your email or phone number in Multi-Factor Authentication (MFA), you typically need to update your information in the Microsoft Entra ID portal. If you are unable to log in because the code is being sent to the wrong email, you may need to contact your Microsoft Entra ID administrator for assistance. They can help you update your email address or phone number in the system.
If your organization uses Microsoft Entra ID authentication and the email field is disabled or grayed out, you will also need to reach out to your administrator for help with this issue.
References: