The insulation should be placed into the space. Hold it in place with foil duct tape or caulk. To fit around the box, insulate it with more rigid foam or fiberglass. To fit the box, do not compress fiberglass insulation.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.