If the state treasurer or whomever violated the election laws of the state, then those votes that violated the law should not count.
The people who cast those ballots in violation of the law should have also known better.
Remember that "ignorance of the law is no excuse", when you violate the law.
If they can't specifically point to which ballots violated the election laws, then there should be a special election that follows the rules.