I use to spray it on , then touch board to wall which killed any further expansion , then pushed into place and added a coupe of mechanical fixing at top . Had no issues or failures .
On a continuous run you can foam two boards fix one then foam another board while fixing previous without any...