I've seen this before too, in other kinds of snakes. The worst was a very old (senile?) albino California king snake that actually tried hard to eat her own tail.
Some snakes (without neurological issues) just miss their target & are too stubborn to let go...probably because they aren't feeling much of any pain thanks to their
scales, & when they move a little, they're even more convinced it's struggling prey?