It could be that a column name, table name, or alias exceeds the maximum length allowed by Oracle, which is 128 chars for version 12.2 and higher, but only 30 chars for earlier versions.
Check your SQL statements for identifiers that might be too long and see if you can shorten them.