> but now I don't have a job so I can't afford even a basic apartment what do we do with our society?
Apartments aren't land, they're buildings. Buildings can be made arbitrarily tall; if we built tall buildings we'd have more housing units than people long before we ran out of land.
So if there is a machine that can build buildings for free, apartments should be cheap. If there isn't a machine that can build buildings for free, get a job building buildings for money.