Hi, RITESH PANDEY
The two-hour message is a security lock on Windows Hello caused by repeated unexpected shutdowns. The main issue is the restarting, which can be caused by a driver, BIOS, software, overheating, or hardware fault.
Here are some suggestions you can try:
At the locked screen, connect the charger and leave the laptop powered on for the full two hours without restarting it. Then select Sign-in options and use your account password instead of the PIN. Once signed in, open Settings > Accounts > Sign-in options > PIN (Windows Hello) and reset the PIN.
To capture the restart error, search for View advanced system settings, select Startup and Recovery > Settings, then clear Automatically restart. The next crash should display a stop code. Take a photo of it.
Install all Windows updates, then use HP Support Assistant to install the latest BIOS, chipset, graphics, and power-management drivers specifically for the HP EliteBook 840 G6.
Test in Safe Mode. If it remains stable there, a driver or startup program is likely responsible.
Since Windows was already reset and the restarting continues, contact HP for a full motherboard, battery, SSD, and thermal inspection if these steps do not help.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.