Some types of foam do react with the finishes on guitars. It's more common with nitro, but has happened with some other finishes. However I don't know what the best replacement foam is.