They’ll try to count ‘em, no doubt. At which time, a very angry PA SC might say “do over”.
At your expense, from the top.
Is there a way to separate these ?
No court can order a 'do over' due to the plenary powers states share over elections with Congress.
A court can determine if state election law was violated, and that is about the extent of its powers. With that, a quo warranto court action can remove candidates seated as a result of the election. That's what they did after the Civil war to the warring Southern states.
Once the security envelope is opened and processed it's statement of legal qualification and voter identification is no longer tied to any ballot. So there's no 'reversing' the process, which is why Democrats use this cheat in the first place.