Question Is the PSU dying?

Recently I am facing some issues with my pc.

I have a UPS and whenever I am playing games and power goes off pc shuts down and it looks like the PSU tripped its circuit.

My ups was a 1kva unit and was beefy enough for the system (300-350w)

Now I thought that was a ups problem so I changed the ups to a better APC model, it worked fine for few days before exhibiting the same shutdown issue on power loss.

Psu is a Corsair cx450 bought in 2018 q3, can this mean that my psu is going bad? As two ups shouldn't have same issue.