Hello Gillian,
Greetings! Thanks for contacting this forum and being a valuable customer to Microsoft products. I'm a Microsoft user like and I'm glad to assist you today.
I understand your concern as you have trouble with using Office 365 as the verification code were missing.
If you no longer have access to the phone number (invalid phone number in your case)or email address, or you need to add another way to sign in, select I don't have any of these when trying to sign in and follow the prompts.
If you have other option like email or authenticator app, you can use those to receive the code.
If you're able to use the alternate method, you can update the email or phone number.
- Go to the Security basics page and sign in with your Microsoft account. https://account.microsoft.com/security
- Select More security options.
- Under Two-step verification, choose Set up two-step verification to turn it on, or choose Turn off two-step verification to turn it off.
- Follow the instructions.
For additional information please refer below link. https://support.microsoft.com/account-billing/bf2505ca-cae5-c5b4-77d1-69d3343a5452
Hope this information would be useful to you. Please feel free to get back if you need any additional info.
Thank you! Ravikumar Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below.