Replace Desktop Power supply with Adapter based Power supply

Solution 1:

erratic electric supply which fluctuates between 130V to 230V. Mostly it is like 170V to 210V and sometimes it fluctuates too fast like 170 then 200 then back 170 like tens of times per minute.

An external adapter will likely work the same as an internal power supply. I would not be inclined to change the computer power supply.

Try a true UPS for this: A unit that chargers the UPS battery and an inverter circuit to power the equipment.

A UPS unit as I have described should absorb the external power fluctuations much better.

Check your AC supply and ask the Power Company about the fluctuations.

Solution 2:

Computer power supplies exist that are FULL range or approx 110v to 240v.

However, I have no idea how such rapidly changing voltage would affect it long term.

You may have to add some kind of line filter to even out the power supply from the mains.

Maybe some kind of capacitor.