Insulation not isolation.
Health risk associated with long term exposure to spray foam is limited the installers, who handles the material every day. Once solidified, spray foam has little risk to residents.
This is not something to back out of for.