You may refer to the articles below to follow the steps to back up and then restore account credentials from Microsoft Authenticator.
If you're an end user then, may also contact your Office 365 admin. (i.e. contact the person who gave you your Microsoft 365 user account and password for further assistance).