I can't think of one that eats foam but many will tunnel into it. Without seeing the damage it's hard for us to speculate, but my guess would be a rodent for nesting material or just gnawing. Look for rodent droppings if damage extensive and doesn't indicate something smaller.
Scavengers such as catfish, eat pests.
birds?
Assuming the foam is from furniture stuffing, then the answer is no. Such foam is plastic and is definitely not edible.
they eat a lot of pests.
moths eat cotton
Eat other household pests.
yes they eat plants.
biological control
They eat common garden insect pests.
They are occasional nuisance animals, generally they are not considered pests.
No, it is not safe.
Pests would take over the Earth if we let them & if no one used pesticide you couldn't afford groceries or eat out in restaurants since the food would not be safe. Rodents are considerred pests as well as insects.