Anxiety and depression at 7? That doesn't sound like a problem anyone should have at 7!
It is very common among gifted kids who are in the wrong placement.
My son was anxious and clinically depressed by age 5 due to a very poor educational fit in Kindergarten (which had already constituted a full grade skip, as he started at age 4.) It took us a while to recognize just what was going on. We initially thought that he was just "growing up" and becoming "more mature" and less silly and talkative, naturally "settling down" with age. His school encouraged this interpretation. It gradually became clear that he was really seriously depressed, and was not spontaneously smiling or talking to us at all any more. Evaluation done mid-way through the year revealed a 2e profile that was the recipe for a perfect storm of frustration in a classroom, particularly a K classroom. We decided to homeschool. Within two weeks of letting him know that he could learn at home with us and would never have to go back to school if he didn't want to, he was back to the laughing chatterbox who had gone off to school the previous fall, and he happily resumed reading Tolkien to himself instead of suffering through "The Bob Books" in class.