Hi,
Sometimes a preference can go awry that causes iMovie not to function properly. Try deleting/resetting preferences. Close iMovie and then open it while holding down the Option and Command keys and select to delete preferences in the box that appears. iMovie will open in a new empty library. Reopen your old library to get back to your projects. See if you can get a full export. Possibly you may need to reboot to set the changes. Deleting preferences is a safe procedure that will not cause data loss or disruption to your project.
Also, there might be some glitch or corruption in a clip at the halfway point. Open your project and use the slider located above and to the right of the timeline to expand out the display of the clips in the timeline. Then scroll around the halfway point looking for signs of corruption, like black frames, white flashes, artifacts, etc. Cut out any that you find and see if you can get a successful export.
Another thing is to confirm that you have sufficient free space on your application drive and destination drive for the export to be completed.
If still no success you can try creating a new blank project. Then open the original project and do an Edit/Select All, Edit/Copy, and then, in the newly created project, do an Edit/Paste. Now see if you can fully export from the newly created project.
-- Rich