These errors occur when a pymongo operation (like find_one(), insert_one(), etc…) exceeds the timeoutMS. When these errors occur do they correspond with server maintenance events like rolling restarts or election of a new primary?
It would be great if you could enable debug logging in pymongo so we can trace the lifecycle of one of these failing operations. Note that logging was added in pymongo 4.7.0: Logging - PyMongo Driver - MongoDB Docs