Please talk with your doctor. He/she may not even want you to work out until you find the source. As for your diet, talk with your doctor as well. He/she may want you to meet with a Registered Dietitian to see what measures need to be taken. Now may not be the time to worry about your weight.
I wish you well! Please take care!