In front of Power needs SPD (Surge Protect Device). A surge protector is a device to give any voltage surge in a power source a safe path to ground. As can be seen in the following photograph, a surge protector is always installed in most industrial control panels.
A noise filter is a device that effectlively removes noise from a power source.
Be sure to select the correct size of SMPS. Usually2 ~3 times larger SMPS is recommended.
If your system is unstable now, You must check have SPD, Noise filter, lager size SMPS.