People always get hurt. It isn't perfect. But capitalism has mechanisms to whether inflation too.
People are generally somewhat averse to changing jobs because they are trained and their car knows the way and there are various benefit incentives, but in difficult economic conditions people are more likely to trade up for a little better wage, more likely to seek management jobs, more likely to enroll in junior college. Bad economies don't just recover because their nature is temporary. There are less robust economies that have a terrible time getting back out. But in an economy like ours where there remain a lot of possibilities, they recover because bad conditions drive changes that drive recovery.