This error is sometimes caused because of previous OneDrive credentials and/or you have recently migrated from a GoDaddy to a Microsoft tenant.
To fix it:
- Closed OneDrive
- Open File Explorer and enabled Hidden Items. You can refer to the following Microsoft article to see a step by step process or screen captures below: https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9d90-91d0-1166d1d9f4b5#WindowsVersion=Windows_10
After that, go to the following path in File Explorer C:\Users\"Your username"\AppData\Local\Microsoft, right click and delete the IdentityCache folder
- Or you can open File Explorer > Click on This PC > Then open Users folder > After that click on your "Username" > Click on AppData folder > in the list of folder open Microsoft folder> search for IdentityCache folder and delete it.
- Open OneDrive and Sign in using your work account
Note: You may keep Hidden Items enabled or get back to File Explorer and uncheck Hidden Items to disable it.