People had these same concerns are troubles during the industrial revolution, when machines started to work better, faster, and cheaper than human labor doing the same job. Is there going to be a serious upheaval in labor again? Yup. Is it a bad thing for the world? In some ways yes, in other ways no.
The industrial revolution has done horrible things to the global environment. At the same time, many more people are much better off today than they were in the early 19th century.