Anyway to have it only add the year to the name if it isn't already in the title?

Sonarr version (exact version): 4.0.1.929
Mono version (if Sonarr is not running on Windows):
OS: Windows 11
Description of issue: Some series include the year in the title and some don’t. So I end up with folders called “Insideman (2022) (2022)” and the year is doubled up because it is part of the series name.

Is there anyway to avoid this?

Sounds like you’re using {Series Title} ({Series Year}), but {Series TitleYear} should do it properly.