Greetings,
Welcome back to the forum.
I am not a HP employee.
I would think you may have operating system file corruption, run a check disk.
A power supply problem,
Or a motherboard problem.
Did this PC do this out of the box? When did this problem start?
Did you add hardware or update any system drivers prior to this event?
Have you tried recovering the PC to factory specs?
Regards