The first materia you put into a gear is 100% safe. Only the 2nd-5th materia can fail.
If it failing, then all materia and (maybe) the gear too are away