Alternatively you could look for a different path in life. Best to get out of the coding jobs early in your career. Don’t look back.
That said, there are some good reasons to do the coding path. At the high end, they pay very very well, and there's no bar organization forcing you to get a $200K 3 year degree. Salaries start higher, and working your way up in other job ladders can be a grind and take quite a while to get up to SWE salaries.
I’ll leave the paradox of industry claims of a shortage as an exercise for the reader.