Academia can be isolating, but there is a range of resources available if you or someone you know is struggling, of if you just need someone to talk to. These actions can sometimes be difficult to take, but remember - you aren't alone.
UCSF counseling & Psychological services
Student health provides a variety of services free of charge, from managing stress to dealing with grief to cultivating a healthy relationship with food and beyond. You can also connect with a counselor online using their anonymous depression and stress screening tool. Keep an eye out for the events they hold on campus on a regular basis.