It seems that some rotation to the cubes also provokes the issue

Gaps appear on parts of the faces, the gaps remain in the same location
even if the camera is moved.