Eating bad chocolate while Prego..

Ok so I'm 35 weeks pregnant and was eating some Hershey's chocolate kisses. I didn't realize they were from freaking Valentine's Day until later but I was eating the crap out of them when I realized that some of them had little holes in them. I ate about 3 more that didn't have the holes in them. I'm pregnant. Don't judge. Lol but anyway I opened one that had a hole in the side just to see (the hole is very small in each of them) but when I opened it there was a little tiny white worm on it ... Like I want to puke! That's when I went to go check how old they were. I'm at a house babysitting and he mom told me to help myself to food. So I had no idea how old it was. Anyway!!! Please tell me my baby isn't in harms way by eating these chocolates!!