Welcome back Safa
It honestly breaks my heart to see you talking this way, I just want to tell you my point...
Second term exam is not the end of the world, and u know whatt, if u feel this way then u should be proud, honestly, coz u r one of those who are "7are9een", and in this case this thing will only benefit u on the long run.
I know that our system (specially the evaluating one (exams) ) is a bad one, and in many times it's a just a matter of luck to pass or not.
I believe that you'll reach a day in which u say "Thank God I failed the first trial in second year", u know why? coz I believe you're one of those who learn from their mistakes -if ever- and will make sure that in the next years they'll do whatever needed to ensure passing, and passing well.
Keep in mind too that it's not just about passing till graduation, it's about learning till becoming a doctor

Wish you all the best, and if you need anything (u or anyone else) regarding anything at all we're all here to help and support, remember... we're family

.
God bless you