There seem to be a lot of issues with sidestepping cover while taking a shot, but in particular I notice it in any situation where I’m in cover shooting down from an elevated position. My soldiers just don’t seem smart enough to stand up or sidestep to attack their target - instead they actually shoot their own cover!
This behavior is endlessly repeatable.
I do hope that this isn’t the intended mechanic.