Optimize error: Unable to convert

When I use the Plex optimize feature, then it often produces a generic error:

Unable to convert

No further details are provided.

The original media are conventional MP4 files:

About 50% of the MP4 files successfully Plex optimize, with the remainder triggering that generic error above.