Error in When using WP Offload S3 and Smush Pro

Using WP Offload S3 and Smush Pro plugins. Smush pro is telling me there is some sort of an issue.
It was working earlier. But now in the media library it is showing an error in the smush column and when tried to perform bulk smush it showed an error like the following
Error posting to API: 500 Internal Server Error