MongoDB timeout settings

MongoDB is composed of mongos, replica-set, and consists of four shards. (version 4.2.19)
Data is being loaded in real time on MongoDB.
In this situation, I would like to know the settings that recommend connectTimeoutMS, socketTimeoutMS, maxTimeMS, and KeepAlive.
I am changing the setting value and monitoring it, but the error below occurs frequently.

Exception sending message; nested exception is com.mongodb.MongoSocketWriteException: Exception sending message