My invertor is in the control cabinet and it has been OK. I made sure the power cables and signal cables were separated, cables were shielded etc. I also used a filter on the invertor power input side.

You will need air outlets at the top of the cabinet, plus I added a vent to the left of the invertor next to the fan so it drew in air from outside directly into it.

On your circuit diagram it looks OK from a quick look point of view, but be aware that the e-stop method you are using can be viewed as less safe. It just tells the breakout board/software that something bad has happened and you are relying on software to stop the motors.

It's a bit more work, and there are plenty of threads on here showing how it can be done, but it is considered safer to have the e-stop trip out a relay, which in turn trips out a contactor which stops mains going into the power supplies, thereby stopping the motors 'physically'. The e-stop relay also has extra terminals which inform the software to stop sending pulses.
You need to configure the relay to have a latching function, or use a Pilz type unit (purpose built, but more expensive).

I ran my previous machine for years in the software only e-stop mode, as you have it, but I'm glad I have the hard stop method setup now for the extra safety.