This always happens to me, has it happened to you too, losing on the last card?
unless against the absolute nuts, a hand will always have some
equity to improve. even against your strong top 2 pair, your opponent has 35% equity to win by the river. if they hit a non queen spade on the turn, they have 36% equity to win. if they hit a 10 or ace on the turn, you are behind and only have ~9 - 13% equity to improve.
so, you can see how much equity in a hand can influence how often a hand wins or loses. in this case, your opponent wins ~20% of the time or 1/5 times, after the turn.
the only reason why losing on the river is so impactful is because the hand is over. you have no more equity to improve, unlike you would if you were behind on the flop or turn.
with all that said, it happens to everyone. but the goal of poker isn't to not lose on the river, its to make profitable decisions. you're very rarely ever going to be getting your money in with 100% equity, so you aim to get it in as an equity favorite more often than not as that's where your profit comes from, assuming you're aiming for max value. in this hand, you win 4/5 times after the turn, which puts you as a huge equity favorite. so, focus more on making good, +ev decisions and less on the negative results as, in the end, those negative results don't matter in the long run.