How did you prep the glue joints? What glue did you use?
It was likely a combination of the grain direction change and pin knot that allowed this to happen... and the glue joint may have been fine otherwise, but just couldn't stop the break.
Since growth rings run one direction, and grain runs perpendicular to them... a piece of wood could be perfectly quartersawn or rift sawn and have potentially threatening grain run out. This appears to have been the case here. Unfortunately, if you don't saw the lumber yourself, it may be very hard or impossible to know ahead of time.