Given that sound and light can cause "abnormal brain activity" that can cause seizures - is it possible that there is also an erratic thought you can think that can cause seizures?
I think so. I imagine it would be some sort of feedback loop. Consider "gnu's not unix" then ask what does the gnu in that stand for, it's also gnu's not unix. and so on. if you don't realise you're stuck in a loop then something goes wrong.
I’m sure I remember reading a short story about a kind of mind virus.