Although the four sentences sound grammatical, only the first is common (in my opinion). Another option would be (e) Having tried twice and failed, I’m ready to give up.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.