Someone ran into this issue in Dagger when trying to set the module name via kotlinOptions.freeCompilerArgs: google/dagger#4493.
In this case, using kotlin.compilerOptions.moduleName works (KSP supports this); however, it would be nice if KSP also checked the freeCompilerArgs as well. At the very least, consider checking the value and throwing an exception with an error message telling users to use the kotlin.compilerOptions API instead.