By stander effect
Illustration on how neurons die by excessive activation of the immune system in the brain. When a pathogen attacks the brain, microglia, which are the immune cells of the brain are activated. They spew out chemicals to kill the pathogen. But, being in a constant state of alertness is bad for the brain, as it floods the region with these chemicals, which are bad for neurons and they begin to die.