If you used a dial, it could be that he overheated, or wasn't warm enough. So few people realize how inaccurate those are, after all, they do sell them at pet stores. It's a pity that stores sell items that are so important to proper husbandry and so inaccurate as to be useless at time.
The clicking would indicate a possible RI(respitory infection), which could explain him trying to get to the heat, and being agitated.
I doubt it would be IBD, as it usually does not take long at all to begin showing up. It also involves more than just a neck stretch and a single regurge(throwing up the rodent), most of the time.
Without a necropsy(an animal autopsy) you wouldn't know exactly why your pet died. Was the tank near a window? Was there a draft?
I'm very sorry your pet died. I hope you can find out why so you can set up differently for your next, if you choose to get another.