You should start to search about spray foam issue when not spray properly.
like too thick at once, wrong product misture for the temp/humidity when sprayed, etc.
There's some complete building that have been foamed that it needed to be removed completely.
that's is the worst case....whish you...