I know it doesn't make your experience any better, but this is *not* a harsh job market. Yes, some companies are pulling back/slowing down/pausing hiring, but there are still far more software jobs available than people to fill them.
> What companies or roles will be more resilient?
Those that are or can quickly become profitable. Most startups are NOT profitable because they chase growth at all costs. This may change as cheap and easy money dries up.
> And how as a SWE / tech industry professional, specially the ones starting their careers like me, can prepare?
Don't do anything different. You had one company pull out on you. That happens all the time for a multitude of reasons. Don't be discouraged. Apply for jobs at a range of companies, from start-ups to profitable SaaS companies to companies outside the typical "tech" wheelhouse.