wiktionary
ref
pin + head
etymonline
ref
pinhead (n.)
also pin-head, "the head of a pin," 1660s, from pin (n.) + head (n.). From mid-15c. as the type of something small or a minuscule amount. Meaning "person of little intelligence" (and/or a small head) is by 1896. Related: Pinheaded.