Chosen Solution

I set my laptop password as 4 numbers. When I use the MacBook keyboard to type said 4 numbers, the laptop doesn’t accept them even though the numbers are correctly typed. When I use a mechanical USB keyboard, the same thing occurs. However, on the USB keyboard if I use the numpad on the right side of it, then for some reason it accepts the password. I have checked if the keys work, and the keys all type correctly. I changed my password to QWER, and it wouldn’t accept it even thought I typed the password correctly into the login page.

Probably the keyboard layout on the password screen is wrong, such as used non-US keyboards and resulted in different key mappings.

I would try using a USB or Bluetooth keyboard to isolate out if the built-in keyboard is not working correctly.