He once talked about changing the past through temporal illusions.
Or he may have fried his brain by self experimentation.
Or just maybe, his public defender has told him that the only way to avoid the death penalty would be to plead insanity. (Not that that's gonna convince anybody, but hey, it's worth a shot.)
secret service person that is an expert in mass shootings said
1. Psychotic break
2. Mania
3. Faking but his past history doesn’t suggest it.