5 in the morning..

So as of lately I've had a horrible sleep schedule. I either can't sleep or I sleep all day and all night. Right now it's 5:43 AM, I woke up at 5 to go to the bathroom and now my mind is jst racing with thoughts and won't let me go back to sleep. I've been feeling so lost, sad and lonely. I'm so sick and just plain tired of living like this. I feel stuck, trapped. I'm physically and mentally tired. When will this end? I honestly don't know how much more I can take. I'm so frustrated with myself. It's like I'm at war with my own self. How can I be losing?