I fought long and hard my last 17 years of my 42 year IT career. Lost some and won some and now retired with SS, RRRA and state pension.
Never give up!
3 years left for me. Been hanging in there. Including HP/HPE then spun off again to DXC.
In other words, going into the IT industry means accepting the responsibility of having to keep up with the changes. Most of us 50-somethings could see the changes were big in our teenage years when we were programming our TRS-80's and Commodore 64's before we were old enough to drive. So when we later made careers out of it we knew we were getting into a field that required us to keep up with whatever future changes came down the pike. If we don't commit to that, we chose the wrong industry.