My friend.... Do not feel bad... shit happens... now you know what areas you need to focus more next time... lots of people fail.. make sure you get enough good material for the exam.
I know many good engineers who did not pass it the first time, nor the second.... they just needed an extra...