To provide temporary relief, these steps may help: Rebooting the device often helps to mitigate the issue. Run the commandlets below in user mode PowerShell to repair WAM. For more context see the article, Authentication fails in Microsoft 365 services. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.