You got "electrical issues" you need to sort them out. Call a pro or at least check the AC wall outlet. Further, just what else is on the AC circuit? Again, this all needs to be sorted out. If in fact the UPS is somehow at fault(defective) then remove it. If you got a bunch of items attached to that AC outlet, the draw is too much. Again, it maybe acting-up but be the cause of a far more serious problem. You may have "aluminum" wiring, loose wiring, bad Ac outlet or even a bad circuit bkr., non-contact screws(loose) or past lightening damage all this can come from the AC side of things. Your PC is telling you by its action all is not well and will do so until it fails entirely. If this setup worked before then what has changed?