That sucks man.
It happens...and I've been there...and might be there again...so you're not in it alone.
Its interesting you're in IT security. I was thinking, although late in my career to make a change, that I'd like to get into IT with a focus on coding and/or cybersecurity. The issues are:
1. I'm 50...so that means 15-20 years to train and work before retirement.
2. I'm 'good' with computers...but the only actual computer 'course' I've taken was FORTRAN in ~1992...and I think I got a C+.
3. Given my experience, degrees, certifications, etc... in my current career...I can find jobs making $95-$135k per year. I might be able to make things work in the $65k-$90k range...but if a starting IT salary is less than that I'd be crushed financially to make the change.
4. I don't think I can afford some fancy intense coding boot camp and I certainly couldn't afford to quit my job and go back to college...so my path would have to start with night classes at the community college. Could take 3-5 years to gain enough skills to make the move.
But, part of my motivation to move into IT is that, like healthcare, welding, and auto repair; it's a field that is growing and strong. Yet, you're telling me the opposite...so now I'm not so sure.
Well, I'll pray for ya. Prayer has been more effective, recently, than I thought it would be...so maybe God is paying attention to me after all.

Bookmarks