I had the same error and I spent a few hours trying to share portions of my project. I narrowed it down to one segment that was causing the error. It was a short clip that I had sped up. I deleted it, dragged it back into the timeline, changed the speed once again, rendered, and sharing worked fine.
Hope this helps.