I wouldn't call this a failure of capitalism necessarily, you could also blame it on a failure of social policies.
Capitalism might concern itself only with only the "private ownership of the means of production and their operation for profit" [0], but there is no reason that it strictly has to be deployed in a manner that is insensitive to human needs and desires. If anything, sufficient ignorance of these long-term objectives only makes it more likely that whatever flavor of capitalism that is deployed keeps consuming until it causes events that lead to its own destruction.