Y Combinator, a Silicon Valley kingmaker, is advising its portfolio founders to “plan for the worst” as startups across the globe scramble to navigate a sharp reversal after a 13-year bull run.