My SO is depressed. I feel so lonely

Hi, everyone.

I have been in a relationship with my boyfriend for 2 years now. He is usually a really loving and sexual man. For the last month he has been feeling depressed, he is feeling worthless and with the weight of the world over his shoulders. He told me once that the only thing he wants in life is to never wake up again.

He is in bad pain, sometimes I feel like he is shutting me out, and it breaks my heart.

I dont know what to do, how can I help him to get better or feel better, how can I not feel rejected or not loved.

Is anyone here in the same situation? I feel so alone 'cause I cant talk this with my SO and I dont know anyone who can give me advice.