I used to go bonkers when this happened to me. It affected my play. When variance it hitting you over the head, you seem to fold hands that hit the flop and play hands that fail to hit the flop, turn & river; or you get KK cracked by 75o on the flop.
By playing hands that you've folded you are setting yourself up for a trip to the insane asylum.
It took me awhile but I eventually realised that by doing this I was committing a cardinal mistake. I was only thinking about my hand and not my opponents' hands, which is what donk players like me do.
Now, I just fold and make sure the software makes the cards disappear on my screen. Then I can concentrate on how other players play. I take notes. I try and put players on ranges after the flop, and further refine my range analysis by how they bet on the flop, turn & river. I'm still not too good at putting players on ranges but at least it takes my mind off my own cards.
And I sure don't miss tearing my hair out every time I fold T7s UTG+1 only to see trips or the nuts made on the flop (only play MTTs and assuming I have a decent stack size and 6 or more players).