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.
Assuming the foam is from furniture stuffing, then the answer is no. Such foam is plastic and is definitely not edible.
birds?
they eat a lot of pests.
No, it is not safe.
moths eat cotton
Eat other household pests.
yes they eat plants.
Polyurethane will kill you if you eat it.
They eat common garden insect pests.
biological control
They are occasional nuisance animals, generally they are not considered pests.