The “pyramid” area above your firebox. This areas purpose is the funnel the gases from the firebox to the flue lining.
Good news, we have a solution for you. Chamberteck
Notice the hole adjacent to the flue liner. Chambertech can fill the holes and prevent the gases from escaping where you don’t want them.