Camp in interiors to wait out hackers
(This is only for the auto-arresters that spin very fast around you when trying to arrest).
Something I've noticed about hackers is they can't go into interiors unless you lead them inside. For example if you see someone in the chat arresting criminals fast, you should immediately go to a robbery or garage as they can't go in there on their own. They can still go there if for example you were being targeted by a hacker and went into an interior, they can still go inside and arrest everyone. I don't know how their script works but usually high bounty players get targeted the most.
One vehicle I found very effective to use against these types of auto-arresters is the Goliath since the Goliath's pit cooldown is 0.5 sec, the hackers will have a hard time arresting you unless you stop or lose speed.