There are several reasons why this could happen
How to Fix Your Microsoft Account Issue – We Need to Fix Your Microsoft Account in Windows 10 – Solution
Are you getting the message "Problem with Microsoft account. We need to repair your Microsoft account" when you sign in to your Windows PC? Or does the error message appear at random times when you use your computer?
You're likely getting this error message because there's a problem with the Windows 10 "Shared experiences" settings, a feature that lets you easily share files between multiple Windows devices. Windows can also display the "Microsoft account problem" error due to file system corruption or if your PC can't sync your account information with the Microsoft server.
While this error often occurs after a recent password change, you may encounter the issue without changing your account password. Refer to the troubleshooting solutions below to resolve the issue.