This is a good instinct.😅
And yes, I agree that human history is a shit show. But that's the point it's a shitshow to us. Because we're judging it from our perspective of our comparatively wonderful world. In a hundred or a thousand years (hopefully), future generations will look back and think the same about us. Twas always thus.
If it's simply repeating cycles, can you point to any period in history that can even come close to matching today's world for wealth or fairness or justice or safety? Can you point to a society that upheld these values even close to as diligently as we do?
We should aim for perfect. But never make it the enemy of good.