Those empires collapsed because in each case, they were pretty much getting robbed blind and were too weak militarily to do anything about it. The problem was that their economies were TOO productive, leading to covetous foreigners wanting to come in and loot everything. Not quite the same thing as having a stagnant economy that forces you to import everything, which is what creates trade deficits.