Breastfeeding blues

Katelyn • Mommy of a 4 year old gorgeous girl, and a little boy on the way.
This is my second baby and once again I feel like I've failed at breastfeeding. Was doing good in the hospital till my nipples hurt so bad that I couldn't bare my son feeding on them even tho I still tried, my son also instantly would fall asleep once I put him on my boob and I was always having to wake him up but he's just fall asleep again, I've gone to lactation multiple times just to find out my son wasn't even getting a half an oz from both boobs and he was losing weight, I switched to a pump and I pumped for over an hour on both sides and only got half an oz then I tried again and got at least 1oz which made me so happy only to be disappointment when I tried again to only get maybe half an oz. my son is now pretty much just on formula which I know there's nothing wrong with that and he's gained a good amount of weight but I feel horrible that I can't give my son something that is so good for him 😢