This is where most people panic unnecessarily.
In general:
✔️ They are usually safe to eat if:
The berries are still firm and fresh
There is no mold (white fuzz or dark patches)
They smell normal (sweet, not sour or rotten)
Only a few larvae were seen
Tiny amounts of fruit fly larvae are not considered harmful to human health. In many cases, if people accidentally eat small traces, it passes through without any issue.