You'll need to choose sign in another way then reset the account two factor.
https://support.microsoft.com/en-us/account-billing/common-problems-with-two-step-verification-for-a-work-or-school-account-63acbb9b-16a1-47b9-8619-6a865e8071a5
--please don't forget to upvote
and Accept as answer
if the reply is helpful--