While behind cover, if you adjust your stance down from low crouch and your character doesn't have enough room for his legs, he will go prone, then stand up, then cycle to some other stances.
Related is the ever present pseudo-bug from ArmA 1 and 2, where a player hits an uneven spot while prone, causing the player to immediately stand up (and usually be spotted/killed.)