If you are the only global admin on the account and are blocked entirely, you can reach out to the Data Protection team to restore access. 866-807-5850
Also for in the future you can create an emergency access account in Azure AD. This account will help prevent being accidentally locked out of your Azure Active Directory (Azure AD) organization because you can't sign in for any reason.
https://docs.microsoft.com/en-us/azure/active-directory/roles/security-emergency-access
--please don't forget to upvote
and Accept as answer
if the reply is helpful--