Have you confirmed that your scope is set correctly? https://learn.microsoft.com/en-us/azure/active-directory/azuread-dev/azure-ad-endpoint-comparison
If you do a web search for this error there are a number of helpful posts around getting the scope set correctly.