I would suggest you actually try and base things on facts not gut feelings. Because that's not what actually happens at a factory. I have no objection to saying the 50 people laid off will likely be worse off for the next few years. But, automation tends to reduce the need for visual inspections a machine that did it correct on a random sample of 5 / 1000 is likely to do a good job on the other 995. Someone might glance at the rest but that's ~1% of the effort of making something and likely 1 job out of the 100.
At really high levels of automation say 10,000 people replaced by 50 that might be a different story, but I am taking about gradual shits not massive and very rare disruptions.
The question of what happens to everyone else is interesting, but the standard of living has generally increased slightly with increased efficiency. Healthcare may be expensive today, but it was not available 200 years ago. Look back say 20 years and you can get basically all the top drugs from 1997 for cheap today.
Even land is not that bad, you can get an acre of farm land for in some parts of the US for under 1,000$, look at remittances from day labor's and the early American dream is within reach of just about anyone. The real change is people's expectations not their absolute earnings.
PS: Now, what separates factory jobs from most work is the power of Unions and the ability to strike effectively. Unions tend to increase worker pay irrespective of the free market, but that's a different story.