Lena Dunham "struggled" with putting her health above having children by having a hysterectomy to help overcome her debilitating endometriosis.