The state legislatures have sole power. They select the electors (even though they spinelessly handed it to the voters almost from the beginning!). If the state legislatures (and the state voters!) are fine with fraud then so are the courts.
But if the fraud isn't proven in court until after the state certifications, then the state legislatures certified based on fraudulent information.
Send it back to the state legislatures.