Have you tried splitting the stack while they're inside the chest? If you press Shift and drag the items somewhere else in the container you should be able to split them into smaller stacks.