From what I read, haven't tested it myself, if you have a diamond pipe attached to the chest/machine it will send the item into it until it is full, then the item will find an alternate path rather than overflowing. Kinda like the old advanced insertion pipes. In your image, replace that...