When renovating a guests' toilet I found, after removing ceiling plasterboard, a rather large hole in the inner blockwork behind the joist adjacent to the wall. The hole has a bunch of electrical cables going through it and obviously the cables run into the cavity. The main goal of the whole renovation is to insulate the room and obviously I have to fill the hole to make it airtight. I was thinking about using an expanding foam, but I've read somewhere (don't remember where exactly) that the ordinary polyurethane foam slowly reacts chemically with the cables insulation. Additionally the foam might cause cables' overheating. Are any of the 2 claims true? If yes and using expanding foam is not recommended then what is a standard solution in such cases?
A picture of the hole is here:
A picture of the hole is here: