Does Y-coordinate (altitude) divide by 8 for Nether portals?
No! Only X and Z divide by 8 when converting Overworld to Nether. Always match the Y-altitude as closely as possible when two portals sit within 128 Overworld blocks so 3D Euclidean distance picks the right frame.