Profitability and low debt.
If you're making money and don't owe money, you can't go bankrupt.
Of course, profitable companies can become unprofitable, especially in a negative environment, so the more profitable it is, the safer it is.
The only thing that stops the timer on the bomb is taking in more money than you spend.