For the most part, bad beats are never as bad a people think they are. For example if you have QQ v AK, all in preflop, and board runs out x-x-x-x-A, is that a bad beat? No, because you already know that this is a 50/50 coinflip and the A hitting on the river doesn't change it's preflop equity of winning 50% of the time. It's already factored in numerous ways that AK can beat QQ and an A hitting on the river is one of those ways. Yes, it might only have a 5% to hit on the river, but again, that's already factored into it's preflop equity.
Does it sting when the A hits the river? I'm sure it does for a lot of people but, if you just take step back an look at the bigger picture, AK is still winning 50% of the time no matter how the board runs out. Another way to look at it, instead of QQ is losing to AK 50% of the time is 'the board is running out in AK's favor 50% of the time.'
The same is said for any other all in preflop hand v hand situations. Once you know hand v hand equity and you understand that the odds of it the board running in villain's favor is already factored in, you can work on just letting it go. In all-in preflop situations, hand v hand equity is either 50/50, 60/40, or 80/20. The 'worst' of it is a villain winning with 20% equity preflop, but that's still just 1/5 of the time if you really break it down to it's basic form. Is losing 1/5 of the time really worth getting tilted over? I don't think so.
Of course, AIPF is not the same as hand v hand situations that are played on each street. With AIPF, you know you're seeing the river but if there is still betting to be done on each street, then it's a bit different as a river isn't always seen. I'm sure that most that complain about losing with AA don't factor in times they won with it uncontested, or when they got villain to fold a better hand, or when they got lucky when they were behind. You can't control what a villain does and you can't control how a board runs out, but you can control if you're you're making more +EV decisions than not. Sometimes being able to let a big hand go when continuing is -EV is a victory in itself. And sometimes you can do things perfectly and get in as huge favorite and still lose. As long as on opponent has some equity, they have a chance to win it. Luckily, the less equity, the less often they'll win but if you find an opponent that's willing to risk it all for, say 5% equity, that's not a bad thing at all. Remember, if there were no bad beats and everyone played perfectly, you'd never make any money off of your big hands.
'
In the long term, as long as you try to make mostly +EV decisions and you're getting your money in good, you'll profit. You're guaranteed to lose sometimes, but that's just how the game goes. The sooner you get used to it, the sooner you can let can let these 'bad beats' go and not let it bother you.