The contradiction between capitalism needing consumers and automating labor out of work has arisen before in the industrial revolution. The solution back then was imperialism and using the profits from the colonies to subsidize a middle class to consume things. Maybe capitalism has still got a few tricks up its sleeve, but the world is finite so you might be right.