Having the text too close to the frame edge was (I believe) the source of the error message for another user.
Since that apparently isn't the case with your project, I only have one other suggestion. Select all of the subtitles in each subtitle track and change the kerning. Undo the change and save the project. See if you can build without error.