It seems to be caused by the use of the experimental pyramid elements.
Cube_pyramid_gap.pmx (761.8 KB)