Capitalism will fail as an economic system because of extreme automation powered by artificial intelligence. Artificial Intelligence is likely to render humanity obsolete.
In our hypothetical all-encompassing robot/AI world, productivity (of use values) would tend to infinity while profitability (surplus value to capital value) would tend to zero. Human labour would no longer be employed and exploited by Capital (owners). Instead, robots would do all. This is no longer capitalism. I think the analogy is more with a slave economy as in ancient Rome ( Source )