I hadn’t heard anything about weight and vitamin D but I understand it plays a part in immune system function, so if you get your levels back up that should help your general health. Were you classed as deficient or insufficient? (Latter is less serious)
Maybe someone will know more.