Do you have any idea how many you don't see? I wouldn't throw it out- the fact that bugs are eating it is a good recommendation!
I would wash it- regardless of the bugs. I soak produce in cold water with a splash of vinegar, then rinse.
It's not bugs you can see, but parasites and bacteria that's bad for you.
I would not put bugs from unknown sources outdoors. You could be introducing an invasive, or foreign species to your locality.
Know about the Emerald Ash Tree Borer as an example? Soooo many ash trees had to be cut down and burned from the disease they spread!
Don't let the perfect be the enemy of the good
So I can relate to your frustration! I've never seen bugs on Trader Joe's produce though.