Make sure that your terrain is 513 by 513 and your mask is 512 by 512. They cannot have 2 layers, and have to be flattened. Is there a window that pops up when you go to export? if so, what does it say? Try the steps above and let me know if it works, if not, I'll help you with this problem directly.