There's a similar glitch that causes you to be stuck like that forever. The setup is as follows:
Shieldbash and then unequip the shield as soon as the animaton starts, before you start moving, equip the shield again once you see yourself stuck, and all your animations will get stuck, after getting hit, you will become invencible though, which is not the case for you. You can also spawn a vial with this glitch, but but can't throw it however.
Can you be a little bit more specific on how you get unstuck when your glitch acours and if it has something to do with this similar glitch in a way or an other?