Hello, thank you for reaching out to Microsoft Q&A.
As AI suggested, first check for any unusual activity in your Microsoft account.
If there are none, it is recommended to enable two-factor authentication and use an authenticator app for verification.
To enable two-factor authentication, sign in with your account here-
https://account.live.com/proofs/Manage
Enable Two-factor authentication.
Important: Ensure you have at least 3 verification methods such as Phone number, email address, authenticator app active in your account.
Next, click Add another way to sign in to your account > Select Use an app > Set up Microsoft Authenticator to verify your identity.
This should resolve the "You've tried to sign in too many times with an incorrect account or password" error.