While you may not do so intentionally, I can assure you that you do, in fact, eat a lot of bugs. In fact, there are countless standards on how much bug can be in your common foods. The amount is never zero.
Most don't, but some inevitably do. The FDA actually has non zero limits for things like poop, bug bits, etc. For example frozen broccoli is allowed to have 60 aphids, thrips or mites (small bugs) per 100 grams. Bay leaves are allowed to have up to 1mg of poop per pound, etc.
If a buggy got in the fruit, it would have had to have pierced the skin of the fruit. In the time it took for that fruit to get across the country/world to the market and your home, that hole would let oxygen in, making a blemish or squishy spot. Most "ugly" produce will never see a store shelf. Some will get processed into other things so you won't see it, but whole produce should be pretty bug free, at least internally.
As the other commenters said though, most is blasted to hell with chemicals to keep this from being an issue.
I have a (little) garden with fruit and vegetables and only a few have bugs inside, like other commenters said when they have bugs they also have a hole so they become inedible before I pick them. I don’t use pesticides and sometimes I find an ant or a worm, mostly inside figs, apples and pears, and when there are wasps inside you can spot them when the fruit is still on the tree and leave them alone!