You’re probably being hit by a bugfix that took place in version 6.6.0 that involved transient-checks for deleted entities that are still referred to from associations of other entities in the persistence context.
You’re probably forgetting to null-out some association after deleting the target entity.