This is difficult to reproduce consistently.
1. Start a mission editing session and make a typo in an init or activation field.
2. Preview the mission to test
3. After the error is displayed, go back to editor and correct the typo.
4. Continue editing , previewing the mission.
At some point, there may or may not be spurious errors appearing.