Bf bipolar and long distance

M

I met my boyfriend 9 months ago. 2 months ago we became long distance because of his job. He did explain to me a few months after we met that he is bipolar. He is on medication. This weekend was the first weekend in 5 months. The past week and a half have been really weird. He was very distant and felt like he was pushing me away. We talked about it last night. He said he just doesn't care about anything right now but at the same time he does care about me. And that he didn't feel as excited as he should have about seeing me. And he doesn't know if he wants to be with me. He said things are perfect when we are together and then as soon as he's not with me he just doesn't care.But he said I'm his best friend. I asked him if he thinks this light switch mood all of a sudden is because of being bipolar. And he said it might be but there is no way for him to know. It just made me feel like absolute shit when he said all those things. I've been putting in so much time and effort I flew out to see him and I've been trying to make more plans but he's just not into it right now. But he wanted me to come over last night before he left and he was all over me and calling me baby. And we haven't had sex yet but tried multiple times. He can't seem to get it up at all. That's frustrating too. I just don't know what to do anymore. I'm tired of being emotionally drained and not eating and not sleeping. But I'm trying to be supportive