1650s, in reference to "fixed" stars (as opposed to "wandering" planets), from Latin inerrantem (nominative inerrans) "not wandering, fixed (of stars)," from in- "not, opposite of" (see in- (1)) + errans, present participle of errare "to wander, stray, roam, rove" (see err). Meaning "unerring, free from error" is from 1785.
-cy
abstract noun suffix of quality or rank, from Latin -cia, -tia, from Greek -kia, -tia, from abstract ending -ia (see -ia) + stem ending -c- or -t-. The native correspondents are -ship, -hood.