Poker losses are inevitable, and neither you nor any other poker player can change this truth. Besides, it's not up to you to choose which days to win and which days to lose.
Of course, this does not mean that wins or losses depend only on luck and are beyond your control. But this control is far from absolute, and it is measured in much smaller units than "win today" or "lose today".
You have control over a lot of small decisions, from choosing whether to play at all, taking into account your mood, to choosing limits and tables, after which it depends on you how you play each hand and how you finish the session.
Sometimes these solutions together, even if they were almost perfect, will not be able to insure you from losing. Just accept it. Don't let a small loss turn into a big uncontrollable tilt, when you continue to play not the best game, your opponents seem much stronger, and the RNG is clearly not on your side.
There is a term that describes poker players who do not know how to get out on time and are trying in desperate attempts to bring the session at least to zero — losers. Don't be like that.