Get a decent quality UPS
Either that or you have a dust/hair issue or heat airflow issues. Hell all of the above.
I've been using a UPS for my primary system for 7 years. I don't overclock. I dust my boxes roughly every 3 months. I replaced the two 120mm fans in the front of my new chassis with a 200mm fan and use a well rated non-stock cooler despite not overclocking. House was built in 1980 so it's not super old.
Must be a voodoo curse. Never buying ASRock ever again though