An exception occurred while opening a connection to the server
I guess it is a locking problem. You should open profiler and watch which queries are locking each other.
Otherwise may be you can try it after researches.
Document.
db.adminCommand( { setParameter: 1, maxTransactionLockRequestTimeoutMillis: 200 } )