When was the last time you ran the troubleshooter? Like how many days ago?
Try the steps below and then run the troubleshooter again. See if it works.
Go to Settings > Accounts > Your info
Click on Sign in with local user instead. follow the steps and finish the rest.
(If you don't see the "sign in with a local account instead option, click on "Stop signing into Microsoft apps automatically" first, then relaunch this page. )
Restart the computer (Do Not skip)
Go to Settings > Accounts > Your info
Click on Sign in with Microsoft account instead. follow the steps and finish the rest
Restart the computer (Do Not skip)