WHAT THE BIBLE SAYS OR DOESN'T SAY ABOUT EPILEPSY AND INSANITY
In Mark 9.17-26, a man is brought to Jesus with symptoms described that a modern physician would recognize as epileptic. But Jesus apparently this to be a "spirit' in the man which he "casts out".

This (found ONLINE) is the only instance I can find that clearly resembles epilepsy. Other possible instances are persons said to be possessed by "demons".

Some of these may also be instances of insanity.

In the Middle Ages and the periods following, a double standard regarding epileptics was followed.

Knowledge that such a notables as Julius Caesar (100-44BC) was epileptic motivated many to consider this condition to be a sign of remarkable ability. So these people received deference or even favor. This was the policy toward the "high born" and the nonpoor.

But, since there was no recording or folk tradition about this condition among notable poor of the past, the condition evaluated unfavorably in succeeding generations. In the Middle Ages, "fits" of epilepsy, especially among women, were taken as "signs of demonic possession" -- even leading to the burning or hanging of these unfortunates as witches.

Some scholars suggest that some of the women hung as witches following the "Salem Witch Trials" were suffering from epilepsy.