The note struck me as suicidal immediately and my heart sank, but there was a comment linking to an older post which heavily implied a terminal illness. RIP.
In one of the indian news reports, his wife was quoted as saying they had an argument a few days ago and she wanted a divorce. This makes me think he didn't have a terminal illness. If he would have had a terminal illness, it's very unlikely that his wife would have mentioned an argument and not mentioned the terminal illness.
We don't know what the argument was about, and it definitely could have been related to health (such as a change in personality brought about by dementia or some other kind of cognitive disorder)
If it was just related to the recent argument I doubt he would have given notice in the issues comments, back in June, that he would no longer be capable of maintaining the project at some point in the future.
I suppose it's entirely possible this was pre-planned back then, but that seems much less likely to me than a health issue.