The best way to expose the problem of capitalism is with this joke "Give a man a fish, and he will eat for one day. Learn him to fish, and you destroy a market." Capitalism is also leading people to harm (health) and exploit other people.
Communism was clearly a false good idea. Liberalism and capitalism (with competition) clearly provide a motivationnal power for which owe most of the health, technical and scientifical progress.
However, it also come with its perversion like the war, junk food and entertainment business and human exploitation as producer or consumer.
Humanity is going through a continuous evolution process and capitalism is one stage of it. New models will emerge fixing the problems of previous models and preserving their good properties.
It's a long time that I think about this and try to find what could be the next evolution step.
My conclusion is that the working model used in science and more recently with open source could be a good candidate because it provides exponential growth which beats capitalism. Some kind of high level control will be needed so that humanity doesn't shoot itself in the foot as would happen soon or later with pure liberalism and capitalism. It already exist today but it is currently frequently corrupted by greeediness of capitalists.
The robot revolution will not suppress all human work. So I don't think that it might affect capitalism that much. I believe that it would make trade business more prevalent.