one problem that you have is that your module is trying to overwrite the Mach4 mill profile. You did some nice work in the screen.
 local CSVPath = wx.wxGetCwd() .. "\\Profiles\\Mach4Mill\\Modules\\Magazine.csv"  
This will cause you an issue 

 We should make it look for the current loaded profile. I will help you with that and that will help with the issue. 
When I installed your profile I did it in the Profiles\CNC5\Modules directory. should have some error checking to prevent crashing if the files are not found. 
Nothing in I can do in the core to fix this