We've been through this before. As recently as the 1930s the Capitalist economy tried to eat itself and had to be stopped. That is historical and everything changes, but the basic principles are the same. Find out where things are going wrong and address that with some basic controls and limits.