What is the problem?
Same Problem with XY Homing crash likes the post from Hank_Patel, but i have the Pi 4 with 4GB
Could already find something similar, unfortunately it didn't help me,
but it should not be due to the firmware, or at least.
Got Marlin 22.214.171.124 on it and an Anycubic Mega S
when I approach the axis via Home all it doesn't happen, but I control it via Octoprint
with the keyboard and the arrow keys, (on the X-axis) there is a collision at the end stop,
so the end stop has no function and it rattles against the mechanical end.
I checked all cables and I also inserted an SD card.
What did you already try to solve it?
Insert SD Card and check the cable management
Have you tried running in safe mode?
Did running in safe mode solve the problem?
Additional information about your setup
OctoPrint version 1.5.3, OctoPi 5.4.83, printer, firmware Marlin 126.96.36.199, newest Firefox, operating system W10, Printer Anycubic Mega s