Do you ever..?

Do you ever feel like when your babe is crying for no reason and they won't stop for anything that you're failing as a mother? My daughter is 5 months old and teething, so I get she's in pain, she cries out of the blue for a good half hour, I try everything to try and calm her down but I end up just feeling like a failure :(