I've seen this only once, and it was with closed cell foam, but I've heard of it happening with open cell foam, too. I don't know the details, but I've heard it could result from a bad batch of chemicals, improper mixing, or too high a temperature. Whatever the cause, it's not a good thing. The photo below shows how the spray foam pulled away from the studs. A little bit of uninsulated area like that adds up to a lot of heat loss/gain when the whole house has that problem, as it did here.
For over a decade, Synavax™ has served as the preferred industrial thermal barrier insulation, energy saving, surface protection and asset protection coating, meeting the needs of multiple industries around the world, including pulp and paper manufacturing, food and beverage manufacturing, U.S. military, oil and gas, textile manufacturing and many others. Spray Coating