Hello, thank you for reaching out to Microsoft Q&A.
May I please know when was the last time you were able to sign in with your @gmail.com account successfully?
According to the Microsoft account activity policy, if you haven't signed in with your Microsoft account for more than 2 years, your account will be put into an inactive state and will be closed.
Read 'Account activity Policy here' -