YOU SAID:
I went to die yesterday but failed
INTO JAPANESE
昨日死にに行ったけど失敗した
BACK INTO ENGLISH
I tried to die yesterday but failed.
INTO JAPANESE
昨日死のうとしましたが失敗しました。
BACK INTO ENGLISH
I tried to die yesterday but failed.
That didn't even make that much sense in English.