I don't think this can legally happen. This situation is described in Amendment XII to the Constitution:
I do not think there is anything explicit in the law that mandates electors to vote for the candidate who won their state under all circumstances. (Correct me if I am wrong.) My hypothesis is that Republicans can, through backroom negotiation) decide to switch their support to someone else. Surely, that would be appealed to the Supreme Court (state or US or both?) if electors picked someone disqualified from running in their state.
If passed to the House to choose, that would, again, benefit Trump, depending on whether the Congress critters from a state were allowed to choose a disqualified Trump. There are more states with Republican House majorities than Democrat.
Especially bearing in mind that we are talking about Trump and his MAGA lunatics, 2024 could end up making Bush v Gore in 2000 look like a polite discussion on where to eat lunch.