I live in a Protestant environment. As a Protestant, you assume that God is loving and who, above all, wants to help people who are suffering. In this Christian belief, all people go to heaven. Of course also suicides. God is always love.
I myself am indifferent in my faith. I'm socialized as a Christian, so I already feel connected to it, but inside I can do a lot more with the ideas of Buddhism. But at the same time I also have a rational side of me that thinks it's all just for peace of mind and social order. Then again, there are moments when I think there must be something higher than myself.
Scientifically speaking, energy is not lost. Where does the energy of consciousness come from, where does it go.
To your question: I personally believe that I have to master a certain task in life. If I don't finish them, I'll get them again in the next life. But no God is angry or disappointed about this but he/she/it is like a patient teacher, like a loving parent and will welcome me with compassion, kindness and love and tell me that I can rest and when I am ready I can continue to work on my life's task in a new life. Heaven is unconditional love, there is no room for accusations, punishments, judgment. But if I take the shortcut by committing suicide, I won't have gained anything, I have to complete the task at some point, maybe it will take me a long time, maybe it will happen quickly.
Fight for your life as long and as persistently as possible - and beyond. But if nothing really works anymore, then go. Without fear of God.