Are the failures power related, or is the system just shutting down on its own?
If the latter, I would suspect either a power supply or a processor fan. If the former, maybe you need to invest in an inexpensive UPS.
I do have a UPS, and it's fully charged. The system is just spontaneously rebooting or shutting down.
Anne