Before you do anything make sure you don’t have a ground fault to the chassis. Measure the resistance between the hot and ground at the iec inlet and confirm there is infinite resistance.
Then check your outlet and make sure it’s wired correctly.
Then check your outlet and make sure it’s wired correctly.