my question is what happens when nobody can afford the stuff that's being produced anymore? I understand that communism hasn't worked so far, but if you don't feed the hordes, you can get Luigied.
The "technological unemployment" you mentioned can only happen if robots/AI replace most of the jobs on the market. But then it means that we have already automated most production and therefore UBI could be an option (taxing the machine).
Otherwise, there will always be a demand for labor. It's not just production that the world economy is about. I see no limit to growth in services such as health, education and entertainment once basic provision is secured.
you assume that people can be retrained instantly or that they can afford to support themselves while they retrain, or even that they even have the capability to learn new trades/skills. in practice in the past I think a lot of people have simply dropped out of the workforce and relied on welfare.