With a full inventory, no spare magazines, and a spare stack of 5.56 rounds, reloading an M4 that has an empty magazine will result in the magazine vanishing from the game.
The desired behavior in this case would be to drop the magazine on the ground since there is no space for it. However, instead the magazine disappears completely.