Surge protection device for LED lamps