My guess here would be that the beer is near it’s freezing point - but for some reason hasn’t done so. Then as you open the pack you form a nucleation point for ice crystals to form and it freezes.
Maybe the freezing point is lower for liquid with dissolved CO2 in it - when you open this falls...