In the Azure AD xDM registered App, it is possible that it has been configured as a Single-Page Application, but xDM is a Web application. This might cause this error message.
For more information, please review the Azure AD platform settings1.
In the end, it should look like this :

I hope this helps someone!
Best regards,
Stéphanie.