I feel like the worst mom ever

So tonight has been a rough one . It's 3:11 am here and I have been trying to get my son to go to sleep since 9pm I have fed him burped him and changed him even gave him little remedy gas relief bc he was gasy. Well he has been screaming and won't stop and I have tried everything I'm a FTM and I feel like a failure I love my son to pieces but I'm frustrated and lost my cool and yelled at him which I am in tears because I don't know what is wrong and I feel horrible because I never loose my cool because my SO usually does and I feel bad for our son because his daddy is like that and I made a promise that I would never do that to him and I just feel like a failure as a mom right now. Also my son will be 8 weeks on the 24