I feel extremely depressed?

I was always good at school, I excelled in class, skipped a grade and always maintained a HD. However, when I was doing my Master's in Mathematics I felt so stupid.

When was presenting my thesis, the overall comment was that my research was too ambitious for a Master's thesis and that I should've focused on something simpler. I can't help but think I'm so dumb, I feel worthless and I don't really know what to do.

Updates
1 y
Just to clarify, the assessor said "the project was too ambitious, she should have focused on something simple and master it instead of getting into this"
So the feedback was that I did not do well
I feel extremely depressed?
Post Opinion