Not extreme hopelessness but extreme distress. Big difference.
All of God's wrath would be poured out upon the holy soul of Christ as He hung on that cross. This would be equivalent to the damnation of Hell. Those three dark hours would be the equivalent of an eternity in Hell separated from God the Father. And that is precisely why God brought a supernatural darkness upon the whole earth for three hours.
And since Jesus Himself is God, He could already foresee this, since by the Holy Spirit He had given us a glimpse in
Isaiah 53. "He made His soul an offering for sin".
But in His humanity, He was shrinking from this terrible ordeal which no human being has ever experienced, or will ever experience on earth. So when Christ cried out "My God, My God, why hast thou forsaken me?" it was a genuine forsaking and abandonment of the one who was God's well-beloved Son. And all of this was so that you and I would not face the damnation of Hell. This was God demonstrating His great love for His enemies (all humanity).
And yet there are some foolish persons who claim that this ONE SACRIFICE FOR SINS FOR EVER was only for a relatively few lucky ones. The rest would be damned to Hell because God had so decreed! Can you imagine such a foolish and wicked notion among Christians? But there it is. No doubt originated by Satan.