I agree, I think you should get neurology work. There is a test you can get on your brain like a EKG on your brain or MRI/ Cat scan, seeing a neurology is probably in your best interest.
In the mean time: for headaches, try staying hydrated and getting sleep and avoiding stress. Also, trying thinking about things that make you happy, that can help brain fog.