There were three separate occasions that this happened to me, each with different connotation:
1. Mass Effect 3: Like thousands of others, the ending of ME3 left an extremely sour taste in my mouth. The series did a PHENOMENAL job of creating this believable universe with an amazing cast of characters, a great story, and then the final payoff was such a fucking cop out that it ruined the absolute concept of a game for me. I don't mean to over-exaggerate this either, like after investing so much time across three stories, each decision impacting the future of my experience, all of it leading up to such a let down of a finale made me question how much time and effort I put into playing games. After questioning myself, I put down gaming for quite a while - I wanna say like 4-5 months - and then got back into it via fighting games and Pokemon.
2. Batman: Arkham Knight: Don't get me wrong, I was part of the minority that absolutely fucking LOVED Arkham Knight. But after beating it, knowing that it was going to be the last of its series, I couldn't play anything remotely similar to it because of how well it was made. Shadow of Mordor/Shadow of War suffered from this; I couldn't get through either of the two because of how similar to Batman they were, so I dropped them (I picked up Mordor in an attempt to get a Batman fix, but it backfired instead). The Arkham series is one of the few games I wish would've lasted forever.
3. Witcher 3: The Wild Hunt - This goes without saying. I had a love/hate relationship with Witcher 1, absolutely LOVED Witcher 2, and then Witcher 3 comes around and blows it out of the water. The production quality, the atmosphere, the depth of the choice/consequence system, the cast of characters, the lore, EVERYTHING. It set the bar so high that anything I played afterwards just felt dead and empty.