There is no need to panic if you accidentally notice that you have eaten an apple or other fruit. As such, nothing good or bad will happen to your body. Apple worms are not able to live in the human body. they will simply disappear, falling into the gastric juice.
That”s even if you have not gritted your teeth. Then you will digest it as usual. Only your imagination can cause nausea and feeling worse. You just do not need to pay attention to it. And then do not forget that worms are pure proteins, in many Asian countries they are eaten just like a dish.
And as the people say, “worms do not enter into fruit that is useless and rich in chemicals.” However, be sure that you eat 100% ecologically clean fruit.