Enter the wrong local account password too many times and Windows could lock you out. The system also counts how many failed attempts you make when attempting to sign on to the machine.
How to Change the Reset Account Lockout Counter After Failed Logon Attempts in Windows 10 and 11
Modify how long before the incorrect password counter is reset after a number of failed logon attempts to a local account.