Inventory stack sizes transfer to storage containers. So setting the stack size for wood to 100,000 should let you stack 100,000 wood in the cupboard.