One thing that I see often with many players is the idea that poker is not gambling, and that you are somehow entitled to win if you had the best hand. Remember, KK vs AA the kings will win one time in five.
I recently had a hand where I lost a $760 pot when I flopped top set of Kings on a KQ7 rainbow board, checkraised a player all in, and he caught A,T to win with his JJ. I had him drawing practically dead.
Mathematically he will still win this hand 5% of the time, with effectively zero outs.
Poker is a game of the long term, and smaller edges than people think. Make sure you are playing within your bankroll, and you will learn with time to handle the beats. Until then, it seems you have a good way to handle them now. Just remember, the beats will always be in poker, no matter what level you play at. The more bad beats you are suffering, the greater your long term expectation. The better a player you are, the more you will get sucked out on, because more often you will have the best hand to start with.