So after changing the nozzle and starting up the machine, the error showed up when
1. A file was selected for printing. The extruder head is supposed to go to home position, instead the error 'XY switch broken' shows up without any movement of the head.
2. While trying to use the move material option, the feeder motor failed to move and showing the same error
3. Using the Change Material option also did not work as the same error popped up
Although the heater and sensor seemed to work normally.
So I factory reset the printer
In the third step after restarting machine where the screen guides to calibrate the buildplate, error ' z - switchbroken ' shows up.
All the limit switches seem to work fine because the change in resistance was checked with a multimeter by clicking the switches manually.
Please let me know what can be done next