I'm not a chemist so I don't know why but foams and other plastics/rubbers can deteriorate in time .It's weird when a foam is ok for a number of years then suddenly deteriorate !! Besides you don't know what's in the foam.What looks like the same foam can have significant difference in chemical composition . Think first of condensation and remove any chance of that getting on your gun.
And Watson , bring your revolver !