Are you able to have her tell you specifically, during some calm moments, and crying is ok too, what it is she thinks she is terrible at? What did she think she was "able" to do? Did she think she was able to do something perfectly? Is it that writing includes lots of editing and that reveals a lot of "imperfection" -- even though that is part of the process?

Just some thoughts, because if she can recognize her own feelings, it will useful for the rest of her life. If she can recognize what she is afraid of, what steps she can take to slowly get better at something, etc etc

Best wishes to you and your DD,