First, exercise willpower and enhance self-confidence. The improvement of willpower can make you have fighting spirit in the face of things, and you won't feel lack of vitality and energy, and you want to escape or give up. You can exercise your willpower through meditation, changing some habits, etc., and you can also increase your fighting spirit and willpower through exercise. There are many reasons for doing things halfway, because without self-confidence, I subconsciously feel that I will not succeed, which leads to my inability to persist. So, you should set small goals. With a goal, you will have motivation. With motivation, you have a direction to move forward. Success can increase self-confidence and sense of accomplishment.
Second, you can choose to give up temporarily. You don't have to force everything, sometimes giving up is also a kind of beauty. If you insist on something, you will feel depressed or afraid. You can give up temporarily. It is sometimes easier to give up than to persist. To give up temporarily is to adjust your mentality, get ready, and have the courage to stick to it when you face it again without feeling depressed.
Third, you can use what you like to encourage yourself and motivate yourself. Self-encouragement and self-motivation can make you see a glimmer of hope when you want to give up, and have the courage and determination to face unknown challenges. Science shows that encouraging and motivating yourself can give you fighting spirit and motivation. So, when you want to give up, encourage yourself and believe that you will succeed.
Life is full of many unknown challenges, so we should learn to treat it rationally and analyze it rationally.