Here’s a workaround to achieve real wrapping”, which needs a precomp (see photos in attachment)
The expression is altered a bit (no rounding down of the numColumns), which causes some layers to go offscreen on the right:
firstIdx = 1;
i = index-firstIdx;
w=thisLayer.width;
h=thisLayer.height;
numColumns = (thisComp.width / w);
// assuming the anchorPoint is at[50%,50%] and scale = [100%,100%]
x= (0.5+(i%numColumns))*w;
y = (0.5 + Math.floor(i/numColumns))*h;
[x,y];
The second (red) copy of the precomp has collapse geometries enabled so layers outside of the precomp’s bounding box also become visible, and it is offset 1920 pixels to the left and 1 row-height (208pixels) down. That adds the stuff that overflows on the right back to the left on the next row.