As mentioned in other posts, I use Hall switches, which are COMPLETELY trouble-free. These go low when a magnet’s South pole comes near. No debounce needed, no levers to break off or catch on things. Repeatability i measured: 15 microns. I pull them up to 5V with 1k, and add a 100nF cap as recommended. They are less than a dollar each. AH3391Q-P-B HALL EFFECT SWITCH, UNIPOLAR, SIP-3, 60 cents each at Farnell.
If you really love micro switches for some reason, just remove the lever and have the screw push the little red button directly. They put that lever on there for things moving or rolling _past_ the switch to trigger them. That is not our situation with endstops.