When there are multiple consecutive failed biometric recognition attempts or when you restart your device, your iPhone will prompt you to enter a password to unlock it. This is not a problem with your iPhone but rather a security measure designed to protect the security and privacy of your device. It prevents unauthorized access to your iPhone using your facial features.