The encoders don't break, they just have a resolution that does not suit what some control can accept, in most cases, they work fine, if your control can use them, Linux with the right Breakout Board should be able to use the original Encoder
What happened to your original spindle drive motor, they are normally used for any retrofit