Nested exception is com.mongodb.MongoSocketWriteException: Exception sending message

Hello.
I have a question.
MongoDB is mongos, replica-set, and consists of four shards. (version 4.2.19)
MongoDB is experiencing an error.

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

I use spring-data-mongo as 3.0.9 version, mongo driver as 4.6 version, and jdk zulu-11 in spring boot.
It is occurring when data is stored and inquired in the spring boot application.

spring.data.mongodb.uri: mongodb://test:test@ip1:port1,ip2:port2,ip3:port3,ip4:port4/database?authSource=database&maxIdleTimeMS=360000&maxLifeTimeMS=360000

What kind of solutions are there?