This leads me to wonder if husbandry is off. When a snake is constantly trying to escape it's usually because they can't find a suitable place to hide. If temps, hides, etc...are all on point the snake would likely just be, well, doing what BPs do...hiding.
The fact that the snake is wrapping itself around the heat source makes me think it's looking for warmth and the heat source is the only place warm enough.