To elaborate on this more there is actually like a Bible passage that talks about this. A few passages actually...
From Ecclesiastes chapter 4
4 Then I returned and considered all the oppression that is done under the sun:
And look! The tears of the oppressed,
But they have no comforter—
[
a]On the side of their oppressors
there is power,
But they have no comforter.
2 Therefore I praised the dead who were already dead,
More than the living who are still alive.
3 Yet, better than both is he who has never existed,
Who has not seen the evil work that is done under the sun.
This is basically saying it's better to have never existed because life is evil.
In Ecclesiastes chapter 7 it says:
The day of death is better than the day of birth.
I think this is basically talking about like just the drama and frustration of life and how it's better to die and be at rest than to be alive and deal with all the BS.
Also it's interesting to note that Ecclesiastes was written by Solomon who asked God for wisdom so he was supposedly the wisest man to have ever lived.