Hello, this is Emily.
I need to gather some additional information first.
Is this regarding your work or school email address? Are you setting it up via the Outlook desktop app when you received this error?
If you go to the web browser, launch it in private mode, then go to https://www.outlook.com, can you please confirm if you can sign in that way without getting error?
Thanks!