I have a Mac Mini M2 Pro, and a MacBook air M2 and they are both exhibiting the same behavior. I have the lock screen set to require password set on both, but I have seen that if I don't unlock it for about a day or two, when I try to login it won't accept my password. I have to power off the unit and then the password works. I currently have the password option disabled, as I can't predict when it will happen again..