if a cube of any size has a length of 1, then it has a hypotenuse of 1.414 on each face.
if you turn a face 45 degrees, the corners will stick off of the cube because the hypotenuse is long.
it will stick off 0.414/2 on each side, or 0.207 on each side.
meanwhile, on an NxNxN cube, each cubie has a hypotenuse length on the cube of 1.414/N.
if each cubie's hypotenuse is shorter than 0.207, that means that if you twisted a face 45 degrees then the corner cubie would completely fall off the cube.
if a cubie's hypotenuse must be longer than 0.207, that means that the length of the cubie must be longer than 0.146
a 5x5 has cubies of length 0.2
a 6x6 has cubies of length 0.167
a 7x7 has cubies of length 0.143 (too short)
so in theory, unless you make the corner and edge cubies larger or a pillowed cube so that the cube's length is longer, a 7x7 is impossible to make.
and a 6x6 actually cuts the margin so close that when you design the cube, the corner piece's leg needs more room than what it has in order to reach the core of the cube, so a 6x6 may also be pillowed or have slightly larger edge and corner pieces.