This error generally means that a personal account with the same email address was used to sign-in instead of the "Work or school account."
You should be able to resolve this by doing the following:
- Sign-out of your personal account from https://account.microsoft.com/ or another Microsoft site.
(If you would like to continue using your personal account it is also possible to create a new browser profile in Edge or Chrome.) - Sign-in again to the service and verify that the "Work or school account" option is selected.
Hope this helps!