Thats plasterboard, bend a piece of wire and push it round the side of the hole to give you an idea of the plasterboard’s thickness. Using a straight piece push it through until there is resistance, measure it, and subtract from the thickness if the wall. That will tell you what the gap is.
Blup