It is the concept of despair, or lack of faith in God, or the belief that you’ve been handed a situation that is more than you can bear.
It is important that we don’t judge the state of mind of the deceased at the time of death. We don’t know!
Which is why I wrote I do not believe it to be a mortal sin.