What could be the solution for such people who try to discourage others by their pessimistic viewpoint under the umbrella of being realistic?

Whenever *such people* talk about reality of anything, all they have to say are negative things and there is no balance between positive and negative side.