You're not a failure. Life is hard. It sounds cheesy and dumb, but its through these hardships we learn.
Remember, the people who think they know the least usually know the most. People who think they know everything are the ones who know absolutely nothing.