This story reminded me of Neal Stephenson's 2015 novel Seveneves, where the Moon, struck by some unknown object, breaks apart. Most life on Earth is destroyed except for a few thousand people who can escape. Humanity has one year to prepare civilization for 5000 years in orbit before they can safely return to Earth again. Very interesting thought experiment on the technological and genetic outcomes!