Chips are also quite small, limited partly by the ability to cool them once they enter a computer and partly because a single defect often means the whole chip must be discarded (which means large chips generatel lower yields).
I suspect we will see much more development in all of these directions, with individual chips extending deeper into 3d and getting improved tolerance to defects allowing them to get larger, as well as with chiplet, die-2-die, stacking and similar methods of combining chips in a package continuing to move forward at a rapid pace.
I don't think we should expect foundry development to stagnate in the near future. If anything, as AI starts to be used in developing new chips, it may well accelerate.