Yep....
... looks like you found the problem!
A little poor contact, high resistance, additional heat, and finally the wire burns off the contact, falls away, and shorts to ground.
I'm sure the new thermal switch (and new wiring terminations!) will take care of the problem.