Investing in subsidized worker retraining can work very short term, but with widespread automation and a reduced requirement for human workers, that can only go so far as the demand for employees simply won’t be there.
So we either have strong laws and protections that enforce that everyone receives the benefits of automation, or we don’t and only a small percentage of the population receives the benefits while everyone else starves to death.