If they fail too often, they simplify the problem so they can start noticing when they’re doing things right. If they fail too little, they’ll make the task harder or their standards stricter so that they can distinguish the success of different approaches. Basically, you should try to avoid situations that always make you feel good (or bad) about your performance.