Have you ever try to figure out what the error code from Azure AD is meaning?
While Microsoft has been trying to provide meaningful information when the error occurs, sometime it is more complicated and not easy to find answer.
Well, good new, you can use this Microsoft site https://login.microsoftonline.com/error – you will notice this is basically the AAD login URL – to get the error code meaning plus additional context to help you resolve it.