Humanity is a blip in Earth's history. We'll be a historical curiosity to whatever comes next just like the dinosaurs are to us.
Yeah, and eternal shame is all we deserve.
It's a noble pursuit, but the key part for you is that you _wanted_ to avoid those mistakes and put forth an effort to learn how to. The necessity, in order to truly avoid them, is that enough individuals collectively desire and pursue that. It's why (good) public education is so important for the long term health of societies.