Hello Snowy Hug,
Welcome to Microsoft Q&A forum.
The issue you see is actually expected when the SAM registry hive has been deleted. The login screen shows an error because there is no database to begin with.
Before we proceed, may I know what it says when you try to read the SATA drive on your computer? And may I know if there are any other drive in the computer?
Regarding the disc issue, based on your description, I believe that the computer is quite old. So modern USB-C keyboard might not work since the BIOS don't have any support for it. May I know if you have tried a PS/2 keyboard instead?
I'm waiting for your reply.