Capacitor transient overvoltage