Making beam spill less sensitive to power supply ripple in resonant slow extraction