I stopped feeding "pincer" type worms (mealworms, etc. which are actually beetle larvae) to frogs and fish when discovered the nutritionally superior night crawlers and similar. Even when I used them, would decapitate them before feeding because some of the larger fish would swallow whole and they were reports of worms damaging their intestinal track with their sharp pincers. IMO earthworms are the best live frog food (excepting itty bitty frogs obviously). I'm happy your frog pooped and now you can stop stressing
.