Possible solutions:
Custom scope:
Select "Custom scope" in the "Generate Javadoc..." settings, you restrict Javadoc to processing only your project's source code. This isolates Javadoc from the conflicting external library dependencies.
"-exclude" flag:
The "-exclude" flag, when added to the "Command line arguments" field, provides control over which packages are excluded.
For example, "-exclude org.jetbrains.kotlinx.*" prevents Javadoc from processing any packages within the "org.jetbrains.kotlinx" namespace.