Put down some storage blocks and connect them to the refinery, select Capsules as a category pull with 999999 amount.
That should prevent overflow loses. Personally I put down 2 blocks with manufacturing capsules pulled into one and the other stuff like Tekt into the other.