Lena Dunham hospitalized, will undergo surgery