If your laptop is running but experiencing glitches, use the built-in HP Recovery Options : HP Support Communityhttps://h30434.www3.hp.com
If you cannot get to the desktop, you must force Windows into recovery mode. This usually requires performing a "Hard Reset" first.
PC won't restart in safe mode or reset - HP Support Community