This, I think OP is reading too much into a single rejection. Maybe they're right, maybe not, who knows. Individual companies do wacky things all the time. Startups in particular tend to be more volatile and may be risk-adverse depending on where they are in funding cycles. Try looking for jobs with larger stable companies with reliable revenue streams. I work at one and we've been actively hiring the entire time.
I think 2022 is still a better job market than most of the past decade.
If this keeps on for multiple years (like the dot com bust) then it will get very painful.
As a contractor I was pulled out the second thing started to turn ugly when covid came in. At that time, they were a lot more people looking for work than job offers. Agencies I was in contact confirmed every position they had got filled with > 100 resume received for each in the span of a few days.
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.