Problem
When you have an item (A) in your hand and press a hot bar key to bring out another item (B) the game tries to put the item in your hands (A) in the slot for item B which can fail if there isn't enough room for item A in item B's location
Expected behavior
When you have an item (A) in your hand and press a hot bar key to bring out another item (B) the game finds a free inventory space for item A and puts item B in your hands