There are three ways to counter it.
a) Buy bats with massive edges but big edges and lot of concaving reduces the sweet spot (professional players never use bats with concaving).
b) Use an oval handle the kind of handle that greatest bats have e.g. Screaming cats or old Puma ballistics. These bats have no concaving, thin edges massive sweet spot and as soon as you hold them, you realize that this bat can't twist in your hand. It also improves control while flicking (playing wristy shots).
c) Use special gloves and grips (dotted) that interlock in each other to avoid twisting.
I have tried all and second option is the best. That is one reason why Screaming Cat bats are costly.