Before you decide on spray foam or another method of insulation, it's important to understand the superiority of spray foam compared to traditional materials. When compared to fiberglass batts, spray foam offers nearly double the R-value per inch, achieves air-sealing and insulation in one step, won't be damaged by mold or moisture, and won't settle, compress, or otherwise be damaged to the point it needs replacement.
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).
If you’re looking for an effective and efficient Elastomeric Roof Coating, you might want to consider the Kool Seal roof coating. This product comes in a 115 fl oz container and is white in color. It is easy to apply and use that it can stick well even in the harshest weather conditions. This product offers maximum clinging to the RV roof despite the temperature. You can also rely on its effectiveness no matter the type of weather. https://www.youtube.com/v/ggLAUsiuI_o
It also has a great waterproofing ability that can shield the roof’s membrane from water and moisture damage. You can also count on the liquid roof coating for its outstanding performance for a wide range of applications and uses. This product can be used at tears and seams as well as in sealing air conditioners and venting systems and anywhere else where rubberized coating is needed.
Spray Foam Roof Insulation