Overcurrent and overvoltage circuit protection