The problem is that Capitalism doesn't care about people. It is a system, and the worth of commodities and even people is determined by the market. People lose their jobs because either automation can replace them, or the job can be done cheaper elsewhere. Either way, that is capitalism, and if you support capitalism then that that is the inevitable result. You can try and restrict the impact by reducing global trade, but even if you built a wall around the USA and didn't import anything, as technology gets more and more efficient there will still be fewer and fewer jobs in the USA.
What's your proposal for people who can't get jobs because there aren't enough of them?