Hi,
What's the detailed error message?
I suggest you to create a bootable media and do a system repair.
Then reinstall all the Apps that were removed by the system repair.
For your reference:
https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/cant-login-after-windows-10-reset/60d0a95f-26b4-4cdd-b3e7-56affb7c9d56
Hope above information can help you.
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
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.