You say you picked up Elixir quickly, built cool stuff and enjoy reading about software. I know a lot of software engineers that software is just a job for them not a vocation or an interest.
I suggest you look at yourself more closely, are you leaving software or tech because of collateral hardships like interviewing and leetcode? or do you hate it?
Few things are interesting to a person, fewer yet interesting that they are also good at and rarely something that they can also get paid for handsomely. And everything will get harder and harder the more you want to grow in it.
You could get a cushy stagnant job somewhere. Consider if you would like it. If yes then you can do that right now in software.
If you wouldn't and you want to keep growing, the pain you're feeling could be from that drive within you.
Also please consider, the grass is always greener, do you feel about other professions the same way you feel about picking up a new book? learning something new? because the sweet promise of new beginnings definitely should not be the only reason to dictate a major decision.