It is the object of 'avoids'.
Previous Question
"Making mistakes is part of learning." How many gerunds?
Next Question
In "Focusing on the task is crucial," 'Focusing on the task' is: