The original version may sound a little odd but it is not incorrect. Here is an example using both the original form and your 2nd suggestion.
"I implemented a security system to avoid bending of the rules."
"I implemented a security system to avoid bending the rules."
The first version implies that the security system was implemented to avoid the general phenomena of rules being bent, whereas the second version implies that I implemented it because I personally wanted to avoid bending the rules.
"... to avoid the bending of the rules"
is a strange way to put it. Maybe if you think of it with a different action verb you will notice it sounds strange. For example, "... to avoid the running", or "... to avoid the drinking". Those are not incorrect but they are referring to specific running or drinking, whereas "bending of the rules" is most probably making a general reference to rule-bending.