Hi @pat
If you sign the work or school account in Office apps and get such error, I suggest you close all Office apps, got to Windows Settings > Accounts > Access work or school, then removed any account that was in there by hitting Disconnect.
Then open Credential Manager > go to Windows Credentials > Generic Credentials > remove credentials which is related Microsoft 365 and OneDrive.
Sign your account into Office apps for a check.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.