@Anmol76
Welcome to HP support community.
Change power plans to power saving mode to fix this issue
-
In Windows, search for and open Control Panel.
-
Search for power, and then click Power Options.

-
Select an option under Choose or customize a power plan.

-
To customize the selected plan, click Change plan settings, and then select the display and sleep settings when using the battery and when plugged in.
NOTE:
To set up a personalized plan, click Create a power plan from list on the left side of the main Power Options window, and then follow the on-screen instructions. The plan displays in the list of available power plans.
-
To change more power settings, click Change advanced power settings.

-
Click the plus sign next to the component or function, change the available settings, click Apply, and then click OK.

-
Click Save changes.
You can refer this HP document for more assistance:- Click here
I hope that helps.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Cheers.
Sandytechy20
I am an HP Employee