I feel your pain. Heres some of my thought process when dealing with bad beats.
I try to not focus on the outcome (winning or losing the hand) but rather how well I got my money in. If I got all my money in preflop with AA, theres really no better situation I can be in. If I end up losing, thats just part of the game. Of course I dont have to like it, but I still am somewhat satisfied that when I put my $$ in, I was at great advantage to win.
What a lot of poker players dont realize is that just because you have the best hand PRE-FLOP, that doesnt guarantee anything. there are still FIVE cards to come. Anytime they lose a hand theyre favored to win preflop they call it a bad beat, which is not always the case.
For example, a lot of players I know would be upset losing with AK to J10. While the AK is a pretty large fav. preflop, J10 will still win close to 40% of the time. I dont consider that a bad beat at all, though of course I'd much rather be holding AK.
Even AA vs. 22 seems like money in the bank preflop, but while AA will win MOST of the time, there are a number of ways 22 can pull it out.
As a poker player for over 10 yrs, I can attest to the fact that the cards do indeed even out. Maybe not in the short term, as I've had runs (both good & bad) lasting 6 mos or longer. That is whats called VARIANCE, & is the #1 reason most people are not successful in the long term. The key to being a winning poker player is money management. You MUST minimize your losses when you hit a bad run of cards, meaning dont try to get all lost $$ back at once. You MUST realize that a major key to winning is LOSING. Losing is part of the game.
Then when the cards are going in your favor, that is the time to step on the gas & MAXIMIZE your winnings. Not by going crazy, mind you. But NEVER...I repeat NEVER quit a game when you are running good. You need to keep playing as long as you are winning, trust me on this one. Some strategies include whats known as STOP WIN, or when you stop playing once you reach your pre-set goal. That was undoubtadely written by a math professor & NOT a poker player. Just keep playing as long as youre winning.
The best way I can illustrate this point is this...
I managed to start with NOTHING @ an online poker site, & build up my acct to well over $1000 just by winning $$ in the freerolls. It took me over a year, but I built it.
Then one day I was having a tough time with my gf, & decided to blow off some steam by playing blackjack. I went crazy & lost the entire acct in less than 30 min.
So you see, that was the exact opposite of the winning formula I described...I minimized my 1 year of winning by MAXIMIZING my 30 min of losing. Simply put, slow down when losing, but LET ER RIP when winning.
Hope this helped a little. Good luck out there.