To start, the cylinder center pin is the same diameter in contemporary guns for every frame class--K is K, for example, no matter the caliber. The pins are also the same for K, L, and N. What varies is LENGTH--there are short ones for 2", 2.5", 3", and then longer ones for 4" and up. This is a 'fitted' part; It comes slightly long to allow for adjusting the lock-up vis-a-vis the front bolt and the rear bolt.
Before you replace parts, however, find out what's going on in the parts 'chain.' For example, did this problem gradually appear, or happen suddenly? Has the gun been disassembled lately, especially the cylinder? Is it clean--like, no gummed oil in any of the pin/plunger orifices in the 'chain'? Is the spring tension of all springs (there are four: front bolt, rear bolt, cylinder ejector, cylinder center pin)) sufficient? Is anything bent or twisted (yoke, yoke barrel, ejector rod, center pin, bolt plunger, locking bolt)?
Check these things first; Eliminate the easy stuff, and THEN think about replacing parts!
Things are not always as straightforward as they seem. . .