I tried UPS connect to main plug and without connecting(on battery). But both ways failed.
Good. That was my next question.
And you've tried different outlets in the house?
I will say about that particular PSU: It's very not good. In fact, it's probably the cheapest PSU you can (no longer) buy (it's topology is now illegal in the U.S. and Europe because its topology is so inefficient). It doesn't have power factor correction at all, never mind any tolerance to poor mains.
I noticed you put "80 PLUS STANDARD" when you listed your power supply? Where did you get that from? I've never seen an RX-400XT that was 80 PLUS anything. It's technically impossible for that PSU to be 80 PLUS anything and it's not even on 80 PLUS's website. If you copied that off a retailer's website that is claiming it has 80 PLUS, then that is FALSE ADVERTISING.
Would you consider just replacing the PSU with one that's not so known to be problematic?