Who is the housebuilder?
The main issue with foam is that it is expanding. It would be impossible to ensure the foam does not enter crevices it shouldn't or swell up so much it pushes the plasterboard out where adhesive is absent.
In addition, depending on the type of foam, it may be a fire risk and could also degrade and damaged electrical cables and plastic plumbing pipes located behind the drylining too.
The proper solution (removing boards and re lining) is expensive, time consuming and would mean you moving out of your home for several weeks, perhaps even months.
One thing for sure is your home won't be the only one on your development with this defect, something to have in mind when you discuss compensation with the housebuilder.