A spin-on oil filter is a component that can contain BPV's, filter media, media cage, anti-drainback valves, a ring gasket, and spring, and an outer shell of thin steel to hold the internal components, depending on the design.
What you are describing is an internal "overpressure" condition which 'collapsed' the media and or media cage, possibly due to some high pressure anomaly.
When a person speaks of a filter collapsing, one usually means the totality of the filter, that is, the thin outer shell of steel has collapsed in toward the components as if it had been run over.
Had people been more specific in their language, I doubt this thread would have come this far.
It was a long filter like this rather than a spin on. The bypass valve was built into the filter housing. Not so obvious but this is the actual crushed filter before the media and end caps were stripped off.