Spray foam comes in two flavors, open cell and closed cell, and provides both parts of the building envelope - the insulation and the air barrier. The building envelope should completely surround the conditioned space, and the insulation needs to be in contact with the air barrier. Since spray foam is both insulation and air barrier, proper alignment of insulation and air barrier is guaranteed.
If you cut the nails holding one of the corner studs to the bottom plate and the top plate with a Sawzall, you can use a flat bar (or a flat bar plus a wrecking bar) to pull the stud off the sheathing nails. Either re-use the stud, or buy a new stud, and install the stud with toenails as shown in the link I provided in Comment #51 (this link: Outside corner detail). https://m.youtube.com/embed/ggLAUsiuI_o
I don't even want to ask this question but... several years ago we hired a local contractor to spray high density foam on the roof deck and walls of our unfinished 2nd floor. We realized that the job was done poorly and cut an access into the attic space to assess things. We realize now that they spray foamed directly to the chimney (no flashing). The chimney is currently used for a woodstove and DHW venting. The DHW will go away but wood stove will remain. My question is, how bad (unsafe) is this? I have found information on foam exposure to fire but have not been able to find anything about temperature ratings in general (i.e. what happens on prolonged exposure to high temperatures).
My other question was gonna be this. We ripped all the drywall out after Hurricane Harvey and we found some latent termite damage from some time back. One of the common studs in one corner is pretty well eaten to shreds. I was gonna brace it but then I read about more modern framing practices and I read how each stud is a thermal bridge. So now I'm thinking that I won't bother with it because the house hasn't fallen down and the foam might help a little. Unless you say to brace the stud. Then I'll do it, Martin! :)