Capacitor internal overvoltage protection method