If you have worms of ANY kind in food, pitch it, and clean the container or pitch it also. You might want to go through your whole food storage and find out if you have insects there laying eggs.
Food borne illness is no joke. Bad food can make you change religions! You might start out a normal enough person but after you get bad food you will be worshiping Raoul, the porcelain god, for a long time.