Use HVDC at 2.5k to 3kVdc or as std requires for 1 second but with ~100k series resistors to achieve HV breakdown rating to make the test non-destructive,yet valid to UL/IEC CE HIPOT leakage standards.
This is a common Test Engineering problem due to lack of design awareness. The AC line filter Y caps conduct leakage currents such that even if the supply may pass , your loads obvious did not due to the CM cap impedance coupling your HVac to the load.
I saw a resistor array arcing. This also tells me your test is extremely destructive. It doesn’t have to be to detect dielectric breakdown.
A good Test Engineer will recognize that the solution is to limit the Hipot tester current above the failure criteria current but hopefully below a destructive threshold . The other solution is use rectified HVAC with a HVDC cap to reduce the ripple or use a tester designed for this and ramp up slowly. Then add HV rated current limiting resistors in series just above (by ~ 25% ) for your desired test failure threshold.
When I did this 20yrs ago Hipot failures were still detected but now non-destructive using the higher HVDC standard for 1.414 +10% so that the test could be done in 1 second, not draw high AC current , yet still test for HV insulation breakdown failures.
This will not only save you scrap costs but be able to speed up HIPOT testing. Your tester should display leakage current, so you use whatever slow ramp dV/dt
Often some poor AC/DC power supplies will fail when the floating secondary is earth grounded and with flyback frequencies, cause the leakage capacitance in the transformer effectively shunt some of the voltage across the transformer insulation and induce more stress on the primary side components to chassis or earth ground. In this case I requested the major OEM ( PowerOne) to improve their assembly and test process in Mexico and perform as I requested with DC earth grounded and then fix all the insulation gap issues after they transferred the production from San Diego, Cali. again the Test and Process Engineers lacked the design experience necessary to choose a worst case test process and test for margin to failure,