The crafting process is meant to be:
[4x Rutile Ore, 4x Carbon] makes [40x Titanium Tetrachloride]
This in turn is used in Purified titanium tetrachloride:
[80x Titanium Tetrachloride] makes [1x Iron Slurry, 2x Magnesium, 40x Purified Titanium Tetrachloride]
This is then used to craft Titanium Sponge:
[1x Magnesium, 20x Purified Titanium Tetrachloride]
Two cycles of Titanium Tetrachloride to produce on cycle of Purified Titanium Tetrachloride, which in turn is enough for two cycles of Titanium Sponge.
Could you explain a bit more on how you are ending up with overflow? Even with productivity modules the ratios should stay the same.