I'm with Flameport here, it sounds like your Thermostat is internally faulty.
When it switches the supply off it shorts to earth (tank) somehow.
Get a new one and replace just that bit, not the coil, I don't know if you've removed it before but its just dropped inside a tube. You don't have...