Advice on how to not freak out whenever im given bad news or hear something negative

I really dont have an entire monologue on this but everytime I ask for advice or i try to do research on something its like I always seek out the negative and dwell on it , I end up unmotivated and too afraid to do anything. When I try to speak to my professors about jobs in the future they're always like "its fun but blah blah blah is very difficult to get into and you'll have to be very lucky to get into blah blah blah" and im like. so whats the point of doing anything if its downright impossible to get anywhere? Its always so anxiety inducing when Im told the the odds are working against me before I even start.