When you feel like giving up, when it feels like an impossible situation, think about this.
1 Corinthians 10:13
The temptations in your life are no different from what others experience. And God is faithful. He will not allow the temptation to be more than you can stand. When you are tempted, he will show you a way out so that you can endure. --NLT
You can endure because God himself will not allow anything in your life that is too hard for you. So don't give up. Don't quit. God will give you a way out so you can continue. You might need to take a walk. You could have a heart to heart talk with a trustworthy friend or family member. Your life is worth living and there is a purpose for all that you go through. Things always look better the next day. Try to surround yourself with positive and reaffirming things to occupy your mind. Do not meditate on the negative or on things which deplete hope.