Countries, unlike companies, are defined by the International system as “too big to fail”. What foreign assistance tries to accomplish would be called a bailout. Unfortunately some countries fail anyway.
Venezuela is a dramatic example. It failed largely because of mismanagement. No amount of foreign aid will fix it. Not even intervention may work. Nobody wants to see a country fail. But countries die, even Rome. And Venezuela ain’t no Rome.