Asking a bunch of traders "how do I avoid sideways price action" is like asking a group of boxers "how do I keep from getting punched in the face"
There are two answers:
1. "Here's how you protect yourself, by doing x y z"
2. "If you want to be a boxer, you will get punched in the face. Remember to protect yourself at all times"
In other wordz, it's normal to take small losses when your breakout retraces back below the base from whence it came. You won't win every trade.
Well Said. You must learn to Sprawl with your positions.