Earlier quoted context omitted.
What if replacing people's jobs is helping people? Milk men, computers (the people kind), horse carriage chauffeurs, people who light lamp posts (when they were oil based) we could go on here. You are clearly coming from empathic place, but I am not sure your premise is nuanced enough. Lots of progress has "victims" but that doesn't necessarily make progress had.
So this comes up all the time on these threads. The key bit of information I’m missing is where did those milk men, carriage chauffeurs, lamp lighters, whatever go and how did they get there after they were rendered useless . Did they retrain for new careers? If so how did they afford the education/retraining necessary. How did they pay their rent/mortgage/etc. in the time in between it took them to do that? What are…
Surely there will be cases where those that are replaced are unable to find work, but I am willing to bet that
1. Those cases are somewhat rare
2. They "make sense" (e.g. close to retirement anyway)
The common case is just to get a new job. Maybe the new job is not as good, maybe it is actually better in the long run.
There are plenty of jobs to go around these days. Unemployment is very low.
If I were to give advice I would personally tell people to stop looking for work that is "safe from automation" because over a long horizon very little is safe. Figure out how to work with the technology instead. Don't need to code there are lots of other ways to contribute.