it indicates you have corrupted process instance entry in db. Please clean processinstanceinfo and dependent tables for these process instances that have empty processinstancebytearray and that will work ok. Important to to note is that processinstancelog must be cleaned as well - just for corrupted process instances as it is used to collect what are the instances that are active.
HTH