Crisis Scenario: A state legislature could attempt to substitute its preferred slate of electors for the results of the popular vote

A state legislature cannot simply substitute its preferred slate of electors for the results of the popular vote.