Otherwise, I don’t think there’s much you can do to insulate yourself. It’s never obvious how resilient your employer is relative to the rest of the industry.
Just reset your expectations on what working in tech will be like for the next few years. And prioritize learning and building your network - whether at work or outside - over trying to climb the career ladder. It will pay off in the long run and you’ll be happier.
Also, articles like this show that we’re nowhere near capitulation. When we actually get there, stay passionate about tech. There will be another boom.
Keep your resume up to date and start applying for new positions. Even if none of them are what you are looking for, it's good to sharpen your interview practice.