Life choices are shit, even the ones you think are good can backfire. Just have to throw the dice and take the roll! I think you are doing a good thing branching out.
I totally blame out-sourcing. The industry is awash with cheap IT workers from abroad and leads of permies can no longer find a job. Grr
Most of use just rolling the dice then? Where them sixes!
It's funny how when i/we started with computers and employment, we'd be seen as forever useful, and in less than the length of a career we are up for replacement - AI likely to scoop up many an IT role 🙄