If you can't login after Factory Reset in Windows 11, and after factory reset you are still prompted for sign in but sign in is impossible, see this post.
It's a good idea to backup the files on your Windows 10 computer for safekeeping, in case you lose them for any reason.
Learn how to find a computer's username and password in Windows 11/10 using Command Prompt, PowerShell, Task Manager, File ...