The true-type test platform is widely used to evaluate whether relay protection devices are effective and accurate in handling simulated single-phase ground faults. However, since the system scale needs to be increased or decreased by switching capacitors connected in parallel on the feeder line, uncontrolled switching of capacitors may cause the magnetic latching relay to burn out. This article studies the transient process of switching and analyzes the reasons for relay burnout. Switching capacitors at non-current zero-crossing points will produce a large inrush overvoltage, which will burn the relay. To solve this problem, a switching control strategy based on delay compensation is proposed to ensure no inrush overvoltage during the switching process, improve the service life of the magnetic latching relay, and improve the safety of the power capacitor.