Resonant capacitor in high frequency power supply