One solution (the Luddite one) is to eschew the technology. If nobody adopts the technology, nobody has to, but nobody can benefit. On the contrary, if anyone adopts the technology, all can benefit, but all also have to suffer the negative impacts. Without everyone on board, the Luddite solution cannot work.
Marx saw a different solution: communism. If the state owns the means of production, the working class and owning class benefit equally. It’s unlikely that we ever move toward this, in my opinion, due to the other issues inherent to communism (unfair (from the perspective of most policy makers) distribution of resources, corruption, etc.).
We need to find a new solution; one which enables people to benefit from technology while minimizing the downsides, or at least localizing the downsides to those who choose to adopt it. Right now we have, IMO, one of the worst situations of both worlds: privatized benefits with publicized costs. For instance, any taxpayer funded bailout.