'mongocryptd error: BSON field 'APIParametersFromClient.lsid' is a duplicate field:

Hello,

I am trying to do auto encrypt and decrypt but it throwing below error.
I have tried various options with atlas connection string. Every time getting different error.
I am php programmer and writing the code in php.

Fatal error: Uncaught exception 'MongoDB\Driver\Exception\RuntimeException' with message 'mongocryptd error: BSON field 'APIParametersFromClient.lsid' is a duplicate field:' in /vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php:134 Stack trace: #0 /vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php(134): MongoDB\Driver\Server->executeBulkWrite('listening.sweep...', Object(MongoDB\Driver\BulkWrite), Array) #1 /vendors/MongoDB/vendor/mongodb/mongodb/src/Collection.php(931): MongoDB\Operation\InsertOne->execute(Object(MongoDB\Driver\Server)) #2 /api/mongoencryptiontest.php(66): MongoDB\Collection->insertOne(Array) #3 {main} Next exception 'MongoDB\Driver\Exception\BulkWriteException' with message 'Bulk write failed due to previous MongoDB\Driver\Exception\RuntimeException: mongocryptd error: BSON field 'APIParametersFromClient.lsid' is a duplicate field:' in /var/www/htm in /vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php on line 134

Another error.

Fatal error: Uncaught exception 'MongoDB\Driver\Exception\ConnectionTimeoutException' with message 'mongocryptd error: No suitable servers found: `serverSelectionTimeoutMS` expired: [socket timeout calling ismaster on 'xxxxx.mongodb.net:27020'] [socket timeout calling ismaster on 'xxxxx.mongodb.net:27020'] [socket timeout calling ismaster on 'xxxxxx.mongodb.net:27020']:' in MongoDB/vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php:134 Stack trace: #0 MongoDB/vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php(134): MongoDB\Driver\Server->executeBulkWrite('listening.sweep...', Object(MongoDB\Driver\BulkWrite), Array) #1 MongoDB/vendors/MongoDB/vendor/mongodb/mongodb/src/Collection.php(931): MongoDB\Operation\InsertOne->execute(Object(MongoDB\Driver\Server)) #2 MongoDB/api/mongoencryptiontest.php(66): MongoDB\Collection->insertOne(Arra in MongoDB/vendors/MongoDB/vendor/mongodb/mongodb/src/Operation/InsertOne.php on line 134

Can you please help on this .
Thanks,
Praveen