I have had this error message many times, and found a fairly easy solution. Write down what frame the message says the error occurred at. Go to the pull down menu under Final Cut Pro and select Preferences. Click on the General tab. Change the time display to frames. Go to that frame in your project and edit it out. I have then been able to share (export) the project. Hope this works for you!