its bad, but this also happened in the late 90s with the dotcom bust. people thought similar things because so many high salary tech jobs were laid off. it wasn't just the bubble bursting, it was capital "discovering" outsourcing could cover their technical needs at a fraction of the cost.
that was the dominant vibe when i was in school, and it soured a lot of interest in tech as a secure/stable profession at the time.
this is the nature of capital and in my opinion, the only real maneuver to mitigate it (besides insurrection) is to not put all your skill/knowledge/development points just into tech. pair it with something you have an interest in (medicine/public health, education, etc) and get a formal credential in that field. then you're not just a tech person, you're a [the other thing] with advanced technical skills who can communicate with the jargon, see the broader context, and propose solutions.
narrow, singular specialization is a risky gamble. some people absolutely make it work and bank, but i think they're the exception over time with these cyclical contractions.