You are legally compelled by the government to fill out tax paperwork every year. Being (much more lightly) compelled to fill out a ballot is no different.
https://en.wikipedia.org/wiki/Compelled_speech
EDIT: IANAL, please do not cite this as any legal justification in a court if you fail to file any form with a government.
If your income is subject to taxation, you can't refuse to fill out the paperwork on the grounds that doing so lends legitimacy to an institution you don't support. The same should be the case for voting.
What you want is to make it easy to vote, and encourage it. Remove registration requirements. Make sure it never takes more than 15 minutes. Make sure it’s easy to know/find/access the polling place. Make elections be on holidays or sundays.
Do you know what ruling supports that? https://www.law.cornell.edu/constitution/first_amendment
And this article seems to support the idea that it would be feasible, and specifically talks to the First Amendment issue: https://www.theatlantic.com/politics/archive/2015/11/a-feasi...
You could probably write the law in a way that avoids first amendment implications. For instance, require that people show up at a polling place, but do not require them to submit a ballot.
If write-ins were removed, I'd agree that it violates free speech.
People voted for Harambe.
To me it is definitely a political statement to abstain from voting or abstaining from the political process entirely so its only logical that participating is also a political statement.