That's also possible, and yeah not something a T-stat will help with. If you don't have central air, I'd be getting creative with cooling that tank down. Maybe freeze some bottles of water and set them OUTSIDE the tank but against one end or something, though from my understanding overheating mostly causes neurological problems.
Either way, I'm glad you're seeing a vet.