Running AIP package import (in my case /dspace/bin/dspace packager -u -r -a -f -t AIP ...) is vulnerable to memory errors due to low implicit value of heap memory in the command line script (JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8"). I encountered both
java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: Java heap space
In both cases and in case when the command is terminated by Ctrl-C, the database transaction is aborted, but files are left in the assetstore. There should be a cleanup process to take care of them at next DSpace (CLI or webapp) startup. A list of files created (something akin to a mapfile) to revert an unsuccessful previous attempt to import.