If you use expanding foam or "foam in a can", use very little of it. It expands on a ratio of about forty to one. My father in law actually busted out a wall when he sprayed some under his bath tub.
It can and will expand the vinyl figures you are trying to protect.
Berny
Phormer Phantom Phixer
On the bench
TF-102A Delta Dagger, 32nd FIS, 54-1370, 1/48 scale. Monogram Pro Modeler with C&H conversion.
Revell F-4E Phantom II 33rd TFW, 58th TFS, 69-260, 1/32 scale.
Tamiya F-4D Phantom II, 13th TFS, 66-8711, 1/32 scale. F-4 Phantom Group Build.