it’s more likely a UL508A issue. It’s common to see a UPS sitting in the bottom of a control panel with cords and plugs, I don’t have UL508A to know if that was allowed, but likely not.
I used a UPS made for AB by APC. It was DIN rail mounted with wiring terminals, UL listed.
Later we switched to all 25VDC controls and used a 24VDC ups from AB. It avoided the 120 to 24 vdc into the ups, 24 vdc to 120, and then back to 24 vdc in the plc. Way more efficient, went from 3 hrs battery on ups to days. All the AB 24 vdc ups and batteries are ul listed, our inspectors look for that