Capitalism is broken by design.
The richest of the richest optimize a percentile of their numbers by ruining the lives of thousands. Hardcore wealth monopolization will lead to an uprising.
The broken system will come to an end when more and more people get replaced by robots and AI.
What will replace it is the question. Maybe communism gets a renaissance.