Originally from Scots, persnickety is a variant of pernickety, which is of uncertain origin.
The prefix per– occurs in a number of other expressive words in Scots, such as pergaddus, “thump, clatter,” perskeet, “fastidious,” and perjink, “trim, neat.”