TypeError thrown

Argument 2 passed to Aws\ClientSideMonitoring\AbstractMonitoringMiddleware::__invoke() must be an instance of Psr\Http\Message\RequestInterface, instance of GuzzleHttp\Psr7\Request given, called in /var/www/localhost/htdocs/wp-content/plugins/mirai-aws/vendor/aws/aws-sdk-php/src/Middleware.php on line 96