If you invalidate their vote, isn’t that specific to who they voted for? Granted, this is way over my pay grade so feel free to correct and educate me.
There is no way to identify who they voted for.
Ballots have no ID tags.