Could the "worm" be part of the egg she didn't pass- or maybe another strange egg? I would think she has some kind of laying issue not parasites, but I'm no expert. I would have poked, prodded and disected that thing until I was sure it wasn't alive. Good luck!