Windows 10, Java 8
Opening the new ticked because this bug appears again.
Step to reproduce:
1. Use command /give @p totem 64
2. Put them on offhand (in my case left hand)
3. Teleport player somewhere really high
4. Player hits the ground and all 64 totems from offhand get consumed
Yes, totems aren't supposed to stack, but they still do through /give and that's not the case to leave the bug. This is useful for testing totem.