Then they say hello to the Supreme Court of the United States, it will order how the votes are to be cast.
I am admittedly not up on electoral college rules but I seem to recall discussiom about four years ago on the matter of whether electors are bound to vote according to how their states voted or whether they were free agents who could vote as they wanted. Of course, if they assumed free agent status, the states could sue them and I imagine that would end up in court but I’m not sure anyone else would have the right to sue the electors besides their state governments. When it comes to the election of the president, we are not a strict democracy.