Last fall my rifle started exhibiting the same malfunction you described. It was very frustrating because the rifle had never had a single malfuction in the previous 2500 rounds.
I started checking all of the things mentioned so far. Lube, Magazines, gas tube, carrier key, ammo, etc. Then it dawned on me, the problem started right after I installed the collapsible stock!. I installed it in September, but didn't get to shoot it for a few weeeks. I forgot to consider what had changed with the rifle that may cause the problems.
I put the A2 stock back on, and BINGO, no problems. I tried a number of combinations of lighter and heavier action springs, plus standard CAR buffer, H buffer, and 9mm buffer. I finally settled on a Wolff extra power action spring, and an H buffer. Since these changes the rifle has been 100% reliable.
This may not solve your problem, but I just wanted to pass on my experience.