Setting aside the wiring length concern, not only is the alignment pin location different, but the grub screw receiving end appears to be different. Dry fitting the switch prior to any alterations is highly recommended.
I have previously adapted a different switch for similar purpose, but to avoid misleading you, I can't recall exactly what modifications were implemented. I do recall once helping someone trying to find a working donor switch from another vehicle. Upon removal it was discovered that the switch was held in place with a some carefully applied epoxy. I do not know whether this was due to stripped threads for the grub screw or the missing alignment pin, or both, but while not pretty, the switch was functional.
Although the timing of this suggestion may not be the best, you are probably aware that the switch is "staked" and press fit together. It might behoove you to re-crimp the original switch or gently pry it apart and inspect the internals for cleaning and relubricating. I believe that this procedure has been illustrated on this forum, but even without photos, it is not that complicated. In some situations, the non-metal "bakelite" portion of the switch has become brittle and cracked, making a permanent fix with epoxy or similar cement daunting, but maybe not impossible.
Best of luck