also nerveracking, "causing anxiety or mental stress," 1812, from nerve (n.) + present participle of rack (v.1). Between nerve-racking and nerve-wracking (1867) this is probably the better choice as a figure of speech, but the sense of wrack (v.), though less suitable in the image, is not obviously wrong.
Entries linking to nerve-racking
late 14c., nerve, nerf, "sinew, tendon, hard cord of the body" (a sense now obsolete), also "fiber or bundle of fibers that convey the capacity to feel or move from the brain or spinal cord to the body," from Old French nerf and directly from Medieval Latin nervus "a nerve," from Latin nervus "sinew, tendon; cord, bowstring, string of a musical instrument," metathesis of pre-Latin *neuros, from PIE *(s)neu- "tendon, sinew" (source also of Sanskrit snavan- "band, sinew," Armenian neard "sinew," Greek neuron "sinew, tendon," in Galen "nerve").
The late medieval surgeons understood the nature and function of the nerves and often used nervus to denote a `nerve' in the modern sense, as well as to denote a `tendon'. There appears to have been some confusion, however, between nerves and tendons; hence, a number of instances in which nervus may be interpreted in either way or in both ways simultaneously. [Middle English Compendium]
The secondary senses developed from meaning "strength, vigor; force, energy" (c. 1600), from the "sinew" sense. Hence the non-scientific sense with reference to feeling or courage, first attested c. 1600 (as in nerves of steel, 1869) and that of "coolness in the face of danger, fortitude under trying or critical circumstances" is by 1809. The bad sense "impudence, boldness, cheek" (originally slang) is by 1887. Latin nervus also had a figurative sense of "vigor, force, power, strength," as did Greek neuron. From the neurological sense come Nerves "condition of hysterical nervousness," attested by 1890, perhaps from 1792. To get on (someone's) nerves is from 1895. War of nerves "psychological warfare" is from 1915.
early 15c., rakken, "to stretch, stretch out (cloth) for drying," also, of persons, "to torture by violently stretching on the rack," from rack (n.1) or from Middle Dutch or Middle Low German recken. Of other pains from 1580s.
Figurative sense of "subject to strenuous effort" (of the brain, memory, etc.) is by 1580s; that of "to torment, afflict with great pain or distress" is from c. 1600. Meaning "fit with racks" is from 1580s.
Sense of "to place (pool balls, etc.) in a rack" as before starting a game is by 1909 (the noun in this sense is by 1907). Teenager slang meaning "to sleep" is from 1960s (rack (n.) was Navy slang for "bed" in 1940s). Related: Racked; racking. Rack up "register, accumulate, achieve" is attested by 1943 (in Billboard magazine), probably from pool halls, perhaps from a method of keeping score. To rack up formerly was "fill a stable rack with hay or straw for horses kept overnight" (1743).