You don't have a lot of options here, as Mach3 is basically a 10 year old, unsupported program.
You could switch to Windows 10, and get a motion controller, but there's no guarantee that Microsoft won't break it again.
Or you can run Windows XP.
Or you can leave Mach3 behind and move onto something more modern, and well supported.