Sorry that you've been going for through all of this.
For what it's worth the auto-immune issues can happen in periods of high stress. The low-energy, joint pain, etc, that could all have been a result of the stress from losing your job. The body is crazy and we underestimate the extent to which our minds and the stresses of life can influence our bodily health.
> In some phases of my life, I can take a giant step back, and look at it like from a bird’s eye view.
This is exactly what I'd be doing. Think about where the world is heading and how you might best position yourself for that world and where you want to be in it. Look at least 10 years out. Overly optimising to solve immediate problems is rarely the best move longer-term. For this reason sometimes these forced-reflection periods can be beneficial in the long-term if they shake you onto a better path.
Best of luck man. It's good to hear your optimistic. I hope everything works out exactly as you hope in the end =)
We've passed the front wall of the singularity. Even 10 years out is incredibly difficult to anticipate, now.