A, Make sure gas tube wiggle in the upper receiver through channel, and not being bound up by the barrel nut channel/spines.
B, Really looks like the center passage for the key is not on center line of the carrier channel.
As stated, could be the flat on the top of the carrier for the key not square to center line of the carrier, or could be problems in the key milling instead.
Since this is a factory built upper, send it back again to have the problem resolved.
If this is something that you built yourself, then should have center line barrel socket to center line of gas tube for the upper at .625", and this numbers should match for the key passage to center line of carrier ID passage as well.
Hence here for the B/C with it on center line of the carrier bolt passage, we put a snug straight drill rod into the Key passage to run an indicator down the drill rod to make sure that the key passage in the holding fast at .625" (center line of the drill rod and will slight higher since we are measure the top of drill rod) from the center line of the carrier itself.
From your photo, either receiver is out of spec with the distance to center line not at .625", or problem with the carrier and key center lines not on .625" parallel bored centers isntead.
Fact is with the way the gas tube is begin rubbed, would dare to bank that the key channel passage is cocked upwards to begin with, and a easy fix. The downside, when you remove the key to address problems with it, you have to use new gas key bolts to reinstall the key again.
And yes, we are well beyond that of a basic parts changer armor talent level at this point; where all the parts are QC'd before hand by someone else, to make sure what they are installing are in spec to begin with.