All rapid weight loss can trigger or worsen hair loss
An overly-restrictive diet can cause diffuse hair loss.
It's best to maintain a balanced diet. However, in the event of rapid weight loss, or iron, vitamin or protein deficiency, diffuse hair loss can occur.
This will be reversible if the deficiency is compensated and if balance is restored to your diet.