A hyper active snake can be a lot of things but heat stress is one of them 97º is too hot and 95 is still very hot especially if you don't have a decent thermometer that you can trust to be correct 90 is safer as even 2º high is still ok.

It could be breeding but your temps are quite high and he is still a bit small for breeding yet, has he produced a sperm plug yet?