I totally understand your pain. I have been through that until they changed transformer in my area. Flashing Christmas tree light that is how it was. .
Your PC doesn't seem to be power hogging. Considering 60% efficiency(360W) UPS should take the load but heavy fluctuation weakens the component...