"morbid fear of being shut up in a confined space," coined 1879 (in article by Italian-born, French-naturalized Swiss-English physician Dr. Benjamin Ball), with -phobia "fear" + Latin claustrum "a bolt, a means of closing; a place shut in, confined place, frontier fortress" (in Medieval Latin "cloister"), from past participle of claudere "to close" (see close (v.)).
Middle English -ik, -ick, word-forming element making adjectives, "having to do with, having the nature of, being, made of, caused by, similar to," from French -ique and directly from Latin -icus or from cognate Greek -ikos "in the manner of; pertaining to." From PIE adjective suffix *-(i)ko, which also yielded Slavic -isku, adjectival suffix indicating origin, the source of the -sky (Russian -skii) in many surnames. In chemistry, indicating a higher valence than names in -ous (first in benzoic, 1791).
In Middle English and after often spelled -ick, -ike, -ique. Variant forms in -ick (critick, ethick) were common in early Modern English and survived in English dictionaries into early 19c. This spelling was supported by Johnson but opposed by Webster, who prevailed.
Others are reading
<a href="https://www.etymonline.com/word/claustrophobic">Etymology of claustrophobic by etymonline</a>
Harper, D. (n.d.). Etymology of claustrophobic. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/claustrophobic