 Are you very insulin-resistant, which often happens when you are carrying a lot of extra weight? Would a very low-carb diet or a ketogenic diet be something that enables you to overcome the roadblocks to your metabolism? I'm not sure you can entirely blame those sleep meds on why your thyroid's not functioning, but I'd have to get some more information to decide, if I were managing your case, what to do.