What happens if a Presidential candidate or the President-Elect dies?
In both cases, the candidate’s party would normally just choose a replacement, perhaps moving the Vice-Presidential candidate up to the Presidential candidate and replacing the VP, or by coming up with someone new entirely. Either way, the electors are normally expected to abide with the party and vote for its candidate.