Which is why I wrote I do not believe it to be a mortal sin.
Your body is a Temple of the Holy Spirit and the only unforgivagle sin is sin against the Holy Spirit.
Despair IS a mortal sin.
The point is that we can’t know the state of mind of others.
But that actively taking one’s own life as an act of despair IS a mortal sin.