Switching to a primary weapon that was just picked up while the player character is prone causes him to stand up, go prone again and then switch the weapon.
Follow the steps to reproduce this bug, it happens 100 % of the time and causes the player to emerge from behind cover, become visible and also become vulnerable for longer than needed.
Maybe related to issue #8675
http://feedback.arma3.com/view.php?id=8675