This makes sense. The Item Network mod was written assuming that item stack sizes never change.
Does this bug occur when you enable the ReStack mod on a factory with Item Network, or when you enable Item Network on a factory with ReStack?
In the short term, the only fix might be to change the stack size before creating Network Chests or to delete the network chests with large stack sizes before removing the ReStack mod.
I made a github issue to track progress on the fix.