Surge protection for EV charger