WP Smush Bulk Smush produces API Server 500 Error

Smushing on upload seems to be working fine, but bulk smushing images will often produce the following error:

Error posting to API: 500 Internal Server Error