So don't worry,
I'm as old as your daughter now,
So, in my opinion, the first thing to do is not to interfere too much. You also said that he would be unhappy if you talked too much.
So when you talk about his problems, you can't just talk about one aspect, but also explain the pros and cons of what he has done, let him make his own decisions and never interfere too much.
If you can calm down, I think your best way is to be silent and pay attention to him silently with that kind of caring attitude, so that when she feels lonely and confused, she will find your goodness, which is much better than chattering. (Of course, most parents disagree. )
Making mistakes is absolutely inevitable, which is a compulsory course for every child. You should cultivate your ability to sum up experience in failure, so that you can really succeed.
I hope I can help you!