Inflection and other important nuances aside, there’s an obvious difference between “What seems to be troubling you?” and “What’s wrong with you?”
You can be well-intended, honest, and accurate, and still unintentionally create conflict (or enemies).
Especially in this age where you are forever accountable for everything you say, it makes sense to examine your speech by:
1) considering whether something must be said at all
2) being mindful of HOW you say what you say