Custom Pricebooks have a size limit of 64kb due to a code size limit in Java. If this size limit is exceeded this may cause partner generated billing (PGB) to fail.
If this limit is hit please reduce the size of the custom pricebook, or split the pricebook into smaller pricebooks that are below the limit.