That's funny question.
Why? Simply because there are obviously no chance to avoid bad luck. If you have a bad poker day, then no matter what you do, you will be loosing. The only thing you can do with that, hold yourself from tilting, being less aggressive and pay less for non-nuts hands. Or even better realize your "bad luck earlier" and just close your poker room and do something else. Better than loosing the whole tho.
And by the way, this is just a good reasonable way of playing poker. Has nothing to do with avoiding bad luck. Obviously you should isolate your opponent with a premium pairs. Cause even Aces are standing pretty suck in a multipot. And surely you should not let your opponents with a draw hand see next card cheap. They should pay and better worse price, as their chances. Every time you do proper bet size and your opponent call it, you are making +EV and he -EV on a distance, no matter if they accomplish their flush or straight at the end of the hand. And this kind of thinking you should get used to if you want to be profitable player. Also you shouldn't care much if you made a right moves, but your opponent got lucky at the end, although he made several mistakes. It can happen and you loose money at that moment, but you shouldn't feeling bad, because if you keep doing right decisions,
on a long distance it will pay you out. Your opponents can't be lucky too often.