Doesnt matter. You either pull those ballots and recount, or barring being able to do that you consider them all tainted and refer back to legislature.
Pull the ballots, how? Once removed from the envelope with the signature, then counted, there will be no way to identify which ballots came from Illegals.