Hi,
Welcome to the forum.
I am not a HP employee.
I can't find your product using the information you have provided. You can find the product number using info at this (Link).
The symptoms you describe suggest a possible power supply problem or a motherboard (MB)/component problem.
This is all I can suggest at this point. You could have a PSU problem, a failing MB, or a component connected to the MB.
Regards