Capacitor protection voltage sampling