At times, stacks of wood will take up another inventory slot at random intervals (e.i. one stack would be 16, another would be 46, and the last would be 100+).
When crafting, the lowest numbered stack will be read and won't allow you to create the desired item.