Thing is, this has been the case for at least 200 years, dating from the Luddites. Quoting https://en.wikipedia.org/wiki/Luddite , "Luddites feared that the time spent learning the skills of their craft would go to waste as machines would replace their role in the industry. ... The Luddites were not afraid of technology and did not attempt to eliminate technology out of fear. Their goal was instead to gain a better bargaining position with their employers."
(As a reminder, "It is a misconception that the Luddites protested against the machinery itself in an attempt to halt the progress of technology.")
Or Phil Ochs "Automation Song" from 1964, https://www.youtube.com/watch?v=WbSTnuXv_3Y
Now you've got new machines for to take my place
And you tell me it's not mine to share.
Both of those point out that the advantages of automation go to a subset of the people - capitalists, in Marxist terms. But that doesn't have to be the case.A strong labor union, or a more socialist form of government interested in supporting labor and workers, could help reduce the hurt of disruption, either by effective trade negotiations or higher taxes on those profiting from automation.