You can manage overflow using a big splitter : give your resource in the input, link the bottom output to a storage, the 2nd output to your next processor and the top to a trash.
This setup will prioritize the storage, then the production and trash the rest.