2 faints and you are out
Sorry to hear your news. I was 2/3rds of the way through a PPL course when I fainted. 3 months later I fainted again. On the first occasion I grounded myself and consulted my GP and AME. It took months of tests and scans and no problem was found.
However without an explanation of the cause I found that the definition of epilepsy seems to be 'more than one unexplained loss of awareness'. This led to a Catch 22 situation where to get a sign-off just to drive again after a year off I had to agree to the 'epilepsy' classification and take the drugs.
Fortunately for me (as I was only seeking recreational flying) I was able to complete my PPL as an NPPL and now have a restricted licence.