I'm not positive here, but I think bondo and resin melt foam. I've never used HDF so I have no idea but I would imagine they would at least have some effect on it.
Yes resin or bondo will melt the foam, although there are some resins which will not melt the foam. I would suggest brushing it with a few layers of glue and letting that dry after each layer to make it harder to break.