How old is the UPS?
Its possible the UPS batteries could be at fault. I would be a bit concerned about that, because if the batteries run down the output purity can suffer which can do damage, as you are starting to find now.
Huawei P10 review
1995-2015: How technology has changed the world in 20 years
How VR is being used to simulate space
New iPad, iPhone SE & Red iPhone 7 on sale now
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.