I think I know in what circumstances the error happens. It's not just related to running it via CLI as it gives same error in GUI mode too. It happens for particular TXT files when option "G" is enabled or GPX is checked in GUI. Otherwise, it converts without any issues.
Regarding the ERRORLVL...