Welcome to the forum.
If you replacing 'like for like' then it should work just like it used to, not withstanding the reason it failed in the first place. Overheating or overloading? If components ARE getting hot, adding some air flow may be enough to stop it happening again.
Options depend on your skill set and how deep your pockets are.
There a few options to fitting better quality components to your controller case, if you can do electrical work and are able to solve problems as they arise.
If you can and want to afford it, there are complete good quality control boxes available to just swap out with you original control box.
It hard to advise anything more specific than that at this stage.
Is there anone nearby who has a CNC Router, that can help you? A Makers Group?
If you add your location, someone close, may be able to help.
Maybe post some pics. That may help us to help you.