I would say no, folding a mid pocket pair if you think your dominated is a good fold. There will be lot's of hands you fold that will flop the nutz after your discard, if you tilt when this happens THAT'S your mistake.
With your chip stack I personally might have called the 52000 all-in, but I don't have enough information on the player who called in position in front of you to say for sure. If he's tight or lucky I fold, if he's an average player someone I have confidence in reading I call, if he's weak and I think I can make him fold I might go all-in.
Hitting the nutz after you fold does suck, but get used to it, don't let it effect your play. Trust your instincts/decisions, folding a mid pair to an all-in and a call of an all-in is NOT a bad decision, it was a good calculated decision. Hitting the nutz post flop is just a coincidence. Stay on your A game forget about it.