In my current role, I've been lucky because we're in a market that IS very financially viable, but isn't HUGE. There's no push to grow crazy big or fast; the push is to keep the product ahead. And we're doing that, with a small team.
We will need to grow a bit in the next couple years, but mostly in (I'm guessing) testing and support.
Before this I was in some other small orgs with generally good management, but they failed. We had lean years at this firm -- there was a furlough period, with 4-day workweeks and 80% salary, and I thought about leaving but honestly also enjoyed the extra day off, too.
We made it over that hump, and are now doing well. My main concerns at this point are leadership succession at the top, and also at the top of the actual dev group. The latter is more easily addressed than the former.