The problem is likely a corrupted account. To test this create a new Local Admin account in Settings > Accounts > Family & Other Users > Other, as shown here: http://www.howtogeek.com/226540/how-to-create-a...
https://www.windowscentral.com/how-change-user-...
Sign into the new account, test if the problem persists, if not then move your files over, test that all programs work or else reinstall them, then when ready delete the old account by one of these methods:
https://www.tenforums.com/tutorials/5464-delete...
You can then change it to your Microsoft account if desired:
https://www.tenforums.com/tutorials/5375-switch...
If you cannot create a new account due to errors, then enable the hidden built-in Admin account used only for emergencies by one of these methods:
https://www.tenforums.com/tutorials/2969-enable...
https://www.isumsoft.com/it/enable-hidden-admin...
Sign into the built-in Admin to see if it fixes the problem and if so create a new Local Admin account to replace the corrupted account, as given above.