When up against a block, mostly if the block is directly above the player or directly behind with a block above head, getting hit sometimes causes the player to be hit up or back into the block closest to them and take suffocating damage for a split second and making it impossible to fight back do to not being able to swing while stuck
This issue is being tracked at MCPE-190671