This is a deranged take. Lots of slurs end in "er" because they describe someone who does something - for example, a wanker, one who wanks. Or a tosser, one who tosses. Or a clanker, one who clanks.

The fact that the N word doesn't even follow this pattern tells you it's a totally unrelated slur.