I am having a similar issue.
When I opened Microsoft Word, I was signed in, but there was a warning icon next to my profile name and picture. When I clicked on it, the notification said. "There's a problem with your account or device. Let's fix it. I pressed the "Continue" button, the app blinked and nothing happened after that. Due to this problem, I logged into my account online and there were no notifications stating there was a problem. So, I proceeded to open my Word document from the online app. It opened fine, but when I asked for the document to be opened on the desktop app, it asked me to sign in using my email address and (PIN, Password or Code from Email). I tried all three and none of them worked. With every attempt, I received a pop-up notification that said "Access Denied. You do not have access to view this file. Would you like to request for permission on SharePoint?" At these point, I decided that I would go to the Microsoft Contact Page to see what my options were. When I clicked on the "Contact Us" page, it gave me another "Access Denied" message that said, "Access Denied. You don't have permission to access "http://support.microsoft.com/ems/auth/login?" on this server. Reference #18.9164cd17.1719879646.3201b9f4 https://errors.edgesuite.net/18.9164cd17.1719879646.3201b9f4"