I work in a tech industry, just want to share my view.
In tech industry, there are no stable work, even if you do your work very well and perfect. When the project you attach to, run out of budget for whatever reason, you might either get rotated to another role or position that you might not fit, or you will will get layoff.
You are product or a resource and they only hiring you for a certain skillset, you are valuable as long as you can provide value. Unfortunately, in tech world, very fast changing, so no skillset can provide the same skillset forever. Working in tech also mean you need to compete with a few billions people daily.
Hustle if you can, earn more money, have a backup plan