Hi,
I would replace the CR2032 motherboard (MB) battery.
A HP H8 PC has some years on it. MB batteries will begin to fail as they age.
Here is a sample MB with a red X through the CR2032 MB battery. Your battery location may be different.

The MB may be failing if a new MB battery does not help. Run HP Hardware Diagnostics.
Start the PC, Tap "ESC", select "F2".
Run system and component tests.
Regards