Nearly always a bad install: foam mixed off-ratio that never fully cured and still smells, foam sprayed over wet or already rotting sheathing, or foam that hid a roof leak. The UK removal wave was driven largely by lender and surveyor objections there.
More detail
Removal is slow and costly. Cured foam is bonded to the wood and comes off by cutting and scraping, often followed by new sheathing, so prevention is worth a great deal. Off-ratio foam, the leading cause, happens when the two components are not delivered in the right proportion or at the right temperature; the result stays soft or crumbly or gives off a persistent fishy, amine smell that ventilation does not fix because it is unreacted chemistry, not ordinary off-gassing. In Central Ohio the scheduling trap is a cold surface: an unheated attic or crawl on a winter morning can sit below the product limit and only warm into range by afternoon, and spraying before it does invites a poor cure. The prevention list is short: a named product and pass thickness, surface temperature and moisture checks logged on the day, monitored proportioner pressure and temperature, and a sound, dry deck. See mold behind spray foam.