Allocating more memory will most likely not solve the problem. Jailer expects the statements in the file to be imported to be separated by a semicolon (‘;’, at the end of the line). If this is not the case, the entire file content is treated as a single statement, which may lead to memory problems.
There is no such script feature. Such a script would have to be executed before the export. However, it is better to use filters for applications such as the one you mentioned. Among other things, this does not permanently modify the source data.