And not to harp on the heat point, but are you controlling it with a thermostat? Without one, temperature fluctuations are very possible - especially in the winter when everyone has their heaters going.
Barring temperature spikes as a possible cause, I'm really going to restate that I would get him to a vet ASAP. The thrashing you describe makes me think something neurological and that has me worried. A few more questions - have you noticed anything else off with him? Is he eating? Have there been any chemicals (like pest treatments or similar) near the room he's in or even in the house?