It would be really helpful if you could send a save. It sounds like you can get into the game at least using the blacklist, and i just can't do much without reproducing it. Alternatively, please at least tell me the random seed and the rest of your options, like screenshots of all the mod settings would be helpful. Also, which version of the game and the mod you're using. I really need hard info to work with here, as i keep asking for.
Just from looking at the code, i can't do much because to me it looks like stack sizes will not in fact get randomized if the setting is disabled, and i simply cannot reproduce the issues. And i simply can't help if you don't provide a save, or the info i'm asking for.
You see, when the game broke it meant i couldn't enter the game past the mod loading. There are no saves, because i couldn't start any games in this situation. The problem wasn't actually the stack sizes themselves, but the fact that the recipes would yield more than 1 item per recipe for the unstackable items. By setting the randomization settings to high range and low difficulty, this would for example make it so the mech armor recipe gave 3 mech armors at a time, which doesn't work since it's unstackable. The mech armor was appearantly not in the armor group, so the armor blacklist didn't cover it. Adding it to the same list as artillery ammo did however work. The same goes for the modded recipes.
As for the versions, i always kept both as up to date as i could.
With high range and low difficulty, this issue was consistent enough that the randomization seed would not really matter.
Adding mech armor and the other items directly to the same blacklist as artillery ammo fixed the issues. My suggestion here would be to have the mod automatically detect the unstackable tag, and not randomize the product count per recipe for those items, rather than just the item's stack size itself. I assume you ran into this issue with artillery ammo as well as the armors, hence the specific blacklist for those items.