The idea that technology will cause widespread job-loss and economic upheaval is such an old fear, and it never works that way. Technological innovations lead to wealth creation 100% of the time, along with more opportunities for more people, even if some jobs are initially replaced with other jobs. "This time is different" is announced everytime, and it's always the same.
This book is very good for anybody wishing to understand basic economic theory and see many examples throughout history of this exact debate taking place over and over and over again: https://www.amazon.com/gp/product/0517548232/ (see the chapter "The Curse of Machinery").