That’s a crying shame when that happens. 🙁
I’m not sure if it makes any difference or not but I like to use stainless cotter pins on these applications. Stainless is tough and harder to bend than an ordinary cotter pin so there might be less of a chance of it falling out or breaking.