The white bugs are the larvae of the fruit fly, and it's unlikely that eating them will have any effect on your health, but it's just that you'll feel sick when you see them, and the biggest effect will be a psychological nausea.
Fruit flies feed on yeast, so it's easy to find fruit flies on fruits and vegetables, especially in the summer, which are most likely to harbor fruit flies on prunes, cherries, blueberries, strawberries and other berries.
In general, especially cherries and grapes, as long as the skin is not broken, the chances of fruit flies will be much smaller.
Before you eat, you should soak the fruit in salt water for 10 to 20 minutes, so that all the bugs in the fruit will come out, and then you can eat it after cleaning it. Also, soaking in water is useless, the worms won't come out, so make sure you use salt water.