I'm officially defeated

My son's due date was in mid September but he came a month early on August 18th. He's been in NICU since he was born and is still there. At first when I started pumping, I got little drops, then after a few days my breast got huge and I would make so much milk. 2 weeks later and I make little to no milk anymore. I only get drops now. The doctors think it's due to lack of sleep (since I'm literally in NICU 24/7), lack of food, and stress. I tried breastfeeding but he wasn't getting much and he started crying so I gave up. I feel like a failure. I'm literally done with breastfeeding and I don't like the formula he's given because it makes him throw up. What to do ??