The last two new Glocks I've purchased had these problems, after swapping extractors and troubleshooting I got rid of them. The conclusion of my internet searching was that a lot of Glocks are having these issues dating back to 2009.
My suggestion would be to have Glock change the extractor and ejector.
I'd rather have it and not need it then need it and not have it.
"If gun owners are as violent as anti-gunners said we are, there wouldn't be any anti's left"