The best solution is not to need money. The less you need investor money, (a) the more investors like you, in all markets, and (b) the less you’re harmed by bad markets.
I often tell startups after raising money that they should act as if it’s the last they’re ever going to get. In the past that has been a useful heuristic, because doing that is the best way to ensure it’s easy to raise more. But if the funding market tanks, it’s going to be more than a heuristic.