That is wonderful, that you can see the situation as a positive thing. You are making such progress! It's absolutely true - this happened for a reason. It is giving you the motivation and energy you need to improve your life.
Your health is important. Focus on your health and how you can care for it.
Map out a plan, and then start on that very first step.