Have not had this problem, however as for decreasing your chances of getting banned.. I'd personally say factors that could matter are -
Runtime(breaks etc)
Using a private scripts(pattern wont get recognized as fast as some script that has 1000 users instead of just u and your bots
How many bots u are running on one IP simultanously.