In MongoDB, if you have multiple sessions try to update same document in the same time, you will get TransientTransactionError, that means you found transaction write conflict error.
1. Show the error on your website and let the user try again
2. Add your code to retry update your transaction automatically, see example here