Through abundance it will defeat itself by working too well. Approaching full automation the only way for capitalism to survive is via UBI, otherwise there will be no consumer markets. When we have enough productive capacity and sufficient UBI that everyone is wealthy without having to work, a society like the Federation from Star Trek becomes possible. When everyone has enough wealth that hoarding it becomes meaningless, we might achieve something like a communist society.