My nephew committed ѕυιcιdє last week. He was age 37. My sister(mom) said he had always had low feelings and he was put on a drug (?) He came off the drug years ago. when he found out that his dog was dying of cancer, he went into a wooded area and shot the dog and himself. (he was baptized, but mom took the children away from the Faith and they continued in their mom's way, very sad!)
We have heard of drugs that can make you feel worse and to the point of ѕυιcιdє.
Also there is the young men (usually) who shoot kids, or those in the theater and then shoot themselves. Can they be programmed? Yes, they could. There is a book "Black Awakenings". (to be programmed, a victim is lured into drugs/liquor and then programmed).
Then there are those, like Judas, who commit a mortal sin, then go into despair and commit ѕυιcιdє. The devil works slow with lures and such then despair to win the soul.
I understand that there are different ways and we keep it in God's judgement. He is perfect and whatever he decides, it will be right.
Our prayers never go to waste, Our Lady will see to that.