Maybe a little light to the end of a dark tunnel...
I had a buddy that had some weird issues. He would just black out for no reason. He was even told he couldn't drive for almost a year because of it. He eventually got on the right diet, the right meds and had no issues for a couple years after. The doc even signed off on him doing OW and he's been enjoying diving ever since.
BUT... don't get your hopes too up.. this is just one instance... and results may vary depending on your conditions, meds, doctors, issues, etc.
Good luck! I hope it all works out for you!
Worst case... get in some good snorkeling!