I've changed from cheap micro switches to a contactless endstop solution on my homebuilt "defENDER3-HD" printer..
Here's the 12mm inductive sensor mount I made for the X rail...
Printed in PET-G, uses the 2 top stock screws to mount, plus 2 x M3x10mm screws..
Real Filament PET-G
240°c hot end
Print on its side, no supports needed then!