I switched from a 5950X + 3080, to a 5700G APU, to finally an M1 MBP + Steam Deck last year for this exact reason. Far cheaper to have a 250wh battery that can handle those two for the ±2h outages every day.
And it might be hard to get your system configured to throttle itself quickly enough when the power goes out: having the UPS connected over USB to a userspace application that monitors it and changes Windows power plans in response to going on battery could be too slow to react. It's a similar problem to what gaming laptops face, where they commonly lose more than half of their GPU performance and sometimes a sizeable chunk of CPU performance when not plugged in, because their batteries cannot deliver enough current to handle peak load.