MongoDB Socket Exception

When connecting from App server to MongoDB server, facing below issue intermittently.
Is there Mongo parameter that need to be changed?

Tried socket and connection timeout settings in App connection string, that did not help.

Got socket exception on connection [connectionId{localValue:7, serverValue:63471}] to server1:27017. All connections to server1:27017 will be closed

org.mongodb.driver.connection: Closed connection [connectionId{localValue:7, serverValue:63471}] to server1:27017 because there was a socket exception raised on another connection from this pool.

Any suggestion for the above issue , encountering the same

Could you solve this?