We noticed a case, that response can contain string in error_messages field instead of an array.
php.WARNING: Warning: foreach() argument must be of type array|object, string given {"exception":"[object] (ErrorException(code: 0): Warning: foreach() argument must be of type array|object, string given at /var/www/.../vendor/currency-cloud/client/src/EventDispatcher/Listener/ClientHttpErrorListener.php:72)