This issue can be a cause from several error, I found this link and helped me identify and solved the issue
Use the correct URL when signing in:
Multitenant applications | https://login.microsoftonline.com/organizations |
Multitenant and personal accounts | https://login.microsoftonline.com/common |
Personal accounts only | https://login.microsoftonline.com/consumers |