Endstop Issues on my Ender 5 Plus - Smashing Rails on X (sometimes)

Edit, nm just noticed the board your using, the Klipper generic config don’t use pullups for that board. You can skip starting a print or pre-heating to trouble shoot, just issue a G28 in console to home.

At this point I would double check the wiring is solid for that endstop. I run a BTT Octopus and use pullups so the pin state can’t float. That’s with 2 wire end stops. If you have 3 wire you probably don’t need them.

With motors off (M84) move X axis to depress endstop and issue QUERY_ENDSTOPS in console. It will show the state of the endstops.:
x:TRIGGERED y:open z:open