Great Stuff can melt and produce toxic fumes, so don't use it around heat sources. There used to be three-inch pipes there, which is why the holes are so big.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.