I usually just breathe in as much as I can and hold my breath until I need another gasp of air. It usually goes away after two or three times.
Lying on your back and pressing your knees to your chest is another way to get them to stop that works for me.
My cat hated Elizabethan collars and got stuck in places with them frequently, but after switching to a donut collar he became a lot more comfortable.