it sparks where the Power cable is connected to the CPU
you are very lucky you haven't already blown out every connected component and possibly burned your house down.
disconnect this crap power supply and take it to your local hazardous material recycling center ASAP!
each time you power on this system you are risking all of your components and possibly your entire living space.
a UPS cannot make your power supply burn out connected components, the worst it would do is shutdown or spark itself if it was damaged or faulty.
replace this power supply with something that fits with the usage of your system:
PSU Tier List 4.0 rev. 14.8 (outdated) Last Update: 12-07-2021 Legend : Gray - EoL/obsolete and/or otherwise not recommended for purchase. Green - small form-factor (gold and blue colors are disregarded due to scarcity of SFX PSUs) Gold - best units in the tier (includes requirements for blue...
forums.tomshardware.com