hey guys, im a student pilot wanting to become hopefull a commercial pilot located in London. Ive completed my CPL exams and failed 2

and when attempting my Night VFR rating, i failed it twice, to my shock!!!
Knocking on wood, i believe im a good and smart pilot, however, during these tests, ive had some rough times with family and stuf etc. etc. . Im also doing a degree in aviation with a college here in London.
Now to my point. I cant stop thinking everyday about how my job prospects have diminished sooo much that by the end of my degree, i may have no chance of getting a job and completing my dream of becoming a airline pilot one day.
Wot do you guys think, you guys are much wiser than i am in this field. P.S. ive never failed anything in aviation before and hopefully never will, but i just hope my past doesnt set a bad image of my future.