This wasn't a personal attack. It was an earnest suggestion.
I believe you. But if you're going to venture into personally intimate areas like whether someone needs psychotherapy, the burden is on you to clearly disambiguate your intent, because these moves are commonly used to snark at and demean others.
https://news.ycombinator.com/newsguidelines.html