Are you trying to sign in with a or a Local Account ?
Restart the PC using shutdown /r /t 0 .
Corrupted system files are a leading cause of this error. You need to run these tools from a recovery environment.
The error is a frustrating hiccup that typically occurs during the Windows 10 "Out-of-Box Experience" (OOBE)—the final setup phase where you choose your region, keyboard layout, and account settings.
I tried basic fixes like restarting, disconnecting peripherals, and running startup repair, but nothing worked until I bypassed OOBE using the command prompt (Shift+F10) and modified the registry or created a local account manually. Not ideal for average users.