Transient overvoltage protection for LED