The only time I’ve heard of this happening was when yeast was over-pitched. It sat for a long while, 4 weeks, so I am surprised you are getting that flavor. Maybe there was some yeast settled in the bottom of the keg and you pulled a glass from it. Drain a couple of pints and see it it clears up.