Hi,
The error WriteConcernFailed: waiting for replication timed out; Error details: { wtimeout: true } means that an operation was waiting for write concern confirmation but the write operation timed out for some reason.
The error SocketException: An established connection was aborted by the software in your host machine. typically means that there is a network issue between the client app and MongoDB.
My understanding is that the two errors may not be related to each other, but they seem to point to the possibility of problematic network connections. Are you seeing some problem that was traced to the two messages? What is your MongoDB version and their topology (e.g. details about your replica set)?
Best regards,
Kevin