Too many changes to database in single action

After running bench migrate command, getting too many writes error

How to fix this as there are more than 20000 queries running