I also have epilepsy and bipolar symptoms that resulted from a traumatic brain injury suffered in '93. I attended a public elementary school and got in trouble almost evey day. In seventh grade, I became home-schooled. I didn't have as much trouble with anger issues, but had more trouble with depression, hopelessness, and feelings of guilt. While I believed God had given me my problems for a reason, I did not consciously trust Him to bring me out of my depression.
God has always been faithful to bring me through, though. In fact, from '03 to mid-'05, I had a very strong faith experience, a good social-life, and few problems with mood-swings. But then, I lost several important friends at church and quit going. My faith suffered. I did not believe God was good. My loss had impacted my faith, and when my seasonal mood-swing came, it spawned even more faithlessness. I ended up in trouble with the law and lost my apartment and was moved into a more intensive rehab program. It seemed my life was ending, and that my faith would never return. But all it takes is faith like a mustard seed. And now I see that God is trying to bring me back into the fold. I am the one sheep who was lost. I am the returning prodigal.
But that's not the point of this post. The point is that God judges the heart. Man may judge your bad behavior by arresting you or throwing you in prison. But God will only be worried about your heart. If the condition of your heart is causing sin, you will be prompted to correct your heart. If your actions spring not from a bad heart, but from a disease, you are only obligated to do what you can to correct your actions. You are still responsible for what you do, but you can expect to be judged by men for that stuff, and by God only for the thoughts and attitudes of the heart. See Heb 4:12, Prov. 23:7