There's only so much you can write "I understand. I support you. Etc." It starts to make you feel like a broken record. Trying to just listen leads to them asking "are you still there? Are you mad at me?"
For example, if this person is expressing doubts about their ability to do something they must, maybe you can express to them why you think they are able by describing the positive qualities you've observed in them (you've taken notice because you care about them) that sets them up to achieving it. If you also think they're unable, maybe it's still a good idea to fail to learn from the experience. You can explain how this sets them up for growth. If it's really bad to fail, maybe you can somehow help them in the task. Even if it doesn't ensure success, increasing the chances a little is often great. Presence can also be very powerful, even if you don't do anything besides being there.
Another example, if they express regret over a difficult choice they made and later saw was wrong, you can remind them that it's not fair to judge their decision after seeing the results. After all, their past self couldn't see the future, and made the best decision they could with the information they had available at the time. The best they can do is learn from it and move forward from that point.
Anyway, originality is key. Otherwise, it seems like a generic copy-and-paste response, and that's not effort.
EDIT: added to the first example.
My experience with this has taught me that it can be extremely helpful to address this concern with the person asking for support, in person, and not while actively giving support. It might help to trying coming to an understand about the repetition of certain language being intentional, especially if you can communicate in advance what that language means to you. "I'm listening" has worked well for me.
People aren't always in the same emotional space or have different ways of experiencing or expressing those emotions, and I've learned that not every moment is the best for hammering home those differences... I suspect that if you'd tell me you have cancer, you're not exactly looking for survival rate statistics or information on operating procedures.