If you cannot reach the login screen, you can use HP's built-in recovery triggers: HP PCs - Windows Safe Mode (Windows 10) | HP® Support
Veteran users may recall the traditional method: repeatedly tapping the as the laptop powered on. Unfortunately, on modern HP laptops running Windows 10 or 11, this technique rarely works. Due to the lightning-fast boot times of solid-state drives, the system often bypasses the legacy interrupt window. Consequently, HP users must rely on more deliberate methods that bypass the need for perfect timing. hp laptop start in safe mode