Spray foam in lofts is something
https://keeganzpno726.rivertonbrief.com/posts/lead-flashing-and-lead-joint-repairs-cardiff-leaks-around-walls-and-extensions
Spray foam in lofts is something I would steer clear of after reading about it here and elsewhere. Friends had real trouble selling because of it. Glad to see it flagged as something to be careful with