Sounds like a seisure. Very strange. I'd see a vet - I hope it's not painful for him. Usually snakes open their mouth/roll over when they're in excruciating pain...
~~~~~ROACH ~~~~~
1.0 Normal
1.1 Piebald
1.0 Banana
0.1 100% Het Piebald
1.1 Het Lavender Albino
1.0 Lesser
0.1 Killer Bee
0.1 Spider
1.1 Pastel
0.1 Butter Bee
1.1 Mojave
1.0 Black Pastel 100% Het Piebald
1.0 Fire
0.1 Pinstripe
0.1 Lesser Bee
0.1 Super Pastel
0.1 Cinnamon