The error below appears in the logs:
javax.jcr.NamespaceException: Unknown namespace prefix: [namespacename]
Could not Build Package "Unknown namespace prefix: [namespacename]
This error usually shows up in environments where partial data migration was done using the crx2oak tool. The crx2oak tool doesn't support migrating namespaces with the data.