I did this with coal. I think it happens when you try to drop or store a stack that isn't the first stack.