Resist the urge to ascribe all negative behavior to academic pressure. Kids go through these phases, gifted or not. Since she was not herself for the past week, I don't think you can blame that particular assignment for the problem.