This happened to me once too. If large quantities of the worms are consumed (with an excited beardie scarfing them down without chewing), it can increase the odds of this happening. I currently dole out Phoenix worms one by one and it hasn’t happened to me since. While the worms don’t harm the beardie, it’s still pretty jarring to see an insect exit your animal in the same state it entered your animal.