Discouragement is a powerful thing. There are generally two reactions to discouraging situations: you can either reevaluate and move forward or sink into despair. From a Christian perspective, the latter response is not a legitimate option.
God is compassionate, and our belief in His sovereign, all-powerful, loving, and faithful nature ultimately rejects the idea of despair. If He is always in control, we can trust that He is faithful to bring about His good plans for us. Our suffering is often part of our sanctification. In these times, it is important that we take God and His plan seriously, realizing that anything He puts us through is worth it for the sake of His glory (Bible, Expositor and Illuminator Union Gospel Press, Fall Quarter 2021).