indigo her teacher called her up to her desk to point out that she knew the material but because she was being careless (or quick, I guess the verdict is still out) she did poorly. She had finished the drill in two minutes and they are allowed seven. To her being called up by her teacher was horrible, she is very sensitive and honestly beats herself up about things so I thought it was probably not necessary for her teacher to point this out. She also only missed three problems out of 40, it was not like she bombed the thing. I sometimes think her teacher expects a little much of her. While high expectations are good, she is still just 7 years old.
Yes, this type of hyper-focus on one's human errors (or errors possibly related to the bundle of traits often associated with giftedness) is unfortunate and can contribute to perfectionism, a child's internalized sense of being less-than, not good enough, or inferiority... between a rock and hard place. The child may learn it is bad to make mistakes; They may avoid challenge, developing a "fixed mindset" rather than a "growth mindset" and resilience. Additionally, the child may begin to treat others in the same fashion that has been role-modeled to her: hyper-critical.
I'm still thinking of the Winter Olympics... even among the best of the best, no performance is "perfect" but there are always winners!

37/40 (92.5%) on an exercise/assessment is good.
I second dg's suggestion to use web searches... there is a lot of information out there on gifted girls, perfectionism, underachievement... and hiding one's intelligence to fit in socially.
Some might suggest talking with your daughter about this experience, the facts, the impact upon her... and possibly including that the teacher is human too and may not always handle things optimally for each student, but she tries her best.
If your daughter is pointed out negatively again you may wish to contact the teacher and politely outline the facts... what occurred, the unintended negative impact. You may wish to consider including resources, or a mention of resources which back you up with research by recognized experts.
At home, you may wish to keep a dated journal with entries describing any such events. This may help you discuss with your daughter, possibly with the school, possibly with any possible future tester/professional... while having things in a factual context and in perspective.
If, on the other hand, a teacher told a student, "there are 5 minutes left, you may wish to keep your paper and check your work" (without giving the child any special advantage as to which problems to check, that there are three to look over, etc), this may be a positive experience. The teacher could make a blanket statement to all children, to keep their paper and check their work.