Dear KristiānsKļaviņš,
I'm Dyari. Thanks for reaching out. I will be happy to assist you in this regard.
Kindly try the following methods to fix the issue:
1-Force the computer to shut down 2 times until you get windows Troubleshooting > Advanced Options > Startup repair.
Or, If you have a restore point, perform a system restore.
2-If it did not help, start your computer in Safe Mode:
https://support.microsoft.com/en-us/windows/sta...
if you could log in with Safe Mode, open CMD as administrator > Type these commands and hit enter:
DISM /Online /Cleanup-Image /RestoreHealth
Once it finishes, type this command and hit enter:
sfc /scannow
Then, restart your computer and check to see if you are able to log in or not.
3-If it did not help, create a bootable USB of Windows 10 and boot your computer with the USB:
https://support.microsoft.com/en-us/windows/cre...
On the installation window, click on repair.
After that, check if it fixed the issue or not.
4-If the issue is still unfixed, perform a clean install:
https://answers.microsoft.com/en-us/windows/for...
Be noted that you have to install the same Windows edition that was running on your computer in order not to face Windows activate issues.
If you have important data, try to rescue them:
https://answers.microsoft.com/en-us/windows/for...
Please let me know if you need further assistance and keep me updated.