Still a lot of different jurisdictions, all with different rules regarding insanity. NPD would not keep a person from getting the death penalty in any of those states. It doesn't render someone non compos mentis. Schizophrenia can, so it depends on the state, how severe the schizophrenia was, both in general and as it related to specific episodes, and the specific lawyers, judges, and juries.