Vexorian's map optimizer has a lot of different options. Try unchecking them and see if you can get it working at all; if you can, re-check buttons until you finding the one causing the problem.
If not, you probably need to edit the map using an MPQ editor. You can just obfuscate the war3map.j (vex's optimizer should do this and produce the new file automatically, which can be inserted in MPQmaster) and delete war3map.wtg for a basic protection. Another thing to try is deleting the war3map.w3i (player data file) from the map after running vex's optimizer.