OMG

I bought Lilo one of the dry treats that looks like a hotdog, but it's a dry ostrich meat, which Lilo loved at the dog store, so I got it for her about a week ago! well... today I was giving her some of it, and then some small ( size of rice grain) bug stared walking on my hand where i was holding the treat...so as I looked closer i saw a bunch of small white larvas/worms inside the treat.Yuck Yuck Yuck....... so now I'm worried about Lilo, BC I don't know how many of them did she ate, and if they are bad for her, since they were swallowed with the treat.
Anyone had simiilar problem ?
Please HELP BC I don't know if I should worry about it and call my vet or what.