Check the gas cylinder alignment. I had an M1do this to me and come to find out the gas cylinder lock was not tight so tightening up the gas cylinder lock screw didn't fix it. I had to turn the gas cylinder lock two full turns. In other words, the gas hole was not aligned. A hand guard that is too long or has the metal insert not seated can cause this and so can a misaligned hole in the barrel.