Glad to hear your little one is one the mend.
All our chooks free range and often a chicks eyes will be bigger than his gullet and he'll eat a bug that's just a little big or a little rough for him and then they go into this 'gasping' mode for a while and then once they get it right down into their crops they're fine again.
It's quite distressing to watch but you know as long as they can still cheep that their windpipe isn't blocked.
It's worth watching out for though as we've had two chicks get one of my daughters hairs (long long hair) wrapped round their tongues and half into their crops and they just can't get them out. It's a delicate operation with tweezers - they don't like it though !!!