If the factory doesn't need to be running, turn it off. That will stop it pulling
if you're talking about the fact that it can build a surplus of unused resources, have a storage module pulling those blocks out of the factory at the rate it pulls them in, should help counteract it.