I think the mental illness comes first.
One of Doctor Jordan Petersons students has been studying personality relative to political belief, just has Johnathan Haidt.
Both of them found a higher rate of diagnosed anxiety disorders in SJWs as well as a tendency to black/white thinking that is more often associated with conservative Christians.