@Pavan91
Welcome to HP support community.
Disable legacy mode and check if that works.
-
Turn off the computer.
-
Press the power button to turn on the computer, and then immediately press the Esc key repeatedly until the Startup Menu opens.

-
Press F10 to open BIOS Setup.
-
Use the right arrow key to select System Configuration, use the down arrow key to select Boot Options, and then press Enter.

-
Check for Legacy Support in the list.
-

-
use the down arrow to select Legacy Support, press Enter, select Disabled, press Enter.
-
Press F10 to accept the changes, use the left arrow key to select Yes, and then press Enter to Exit Saving Changes to restart the computer.
Let me know if that works.
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