Star-K: Packages of Organic Figs, even those with reliable kosher certification, have been found to have a high rate of infestation.
STAR-K recommends checking ALL figs, even those bearing a reliable certification.
TO PROPERLY CHECK FIGS: open each fig and carefully inspect the interior for any insects like wasps, beetles or worms. If any are found, discard the entire fruit.
It is probably more preferable not to eat figs…
The Torah only forbids eating insects that crawl on the ground, fly in the air, or swim in flowing water. So insects that are inside figs or other fruit are mutar to eat if they were in a fruit that was detached from the ground their whole life. You don’t have to eat them if you don’t want to. But to make it sound like it is forbidden is either total am haratzus or kefira. See the OU article titled Kosher Worms and insects. Although there are always possible reasons why everything in the world might be forbidden, it is important to know what is a chumrah, and what it says in the Torah.