The Black Death in the 14 century killed a third of the population of Europe, which lead to a surprising rise in wages and standards of living.
It's weird and uncomfortable how tragedy sometimes leads to very good things. Similarly in the opposite direction, automation should have been a good thing yet it leads to unemployment and poverty.