Capacitor protection against flash failure