Error 251 - Transaction XXX has been aborted

Good afternoon people

I have a Java Spring Boot application that uses Mongo (Atlas Server).
I enabled transactions with org.springframework.data.mongodb.MongoTransactionManager and everything works fine, but I have a problem.
When a given transaction exceeds 1 minute, I get the following error:

org.springframework.data.mongodb.MongoTransactionException: Query failed with error code 251 and error message ‘Transaction 643 has been aborted.’ on server XXX. nested exception is com.mongodb.MongoQueryException: Query failed with error code 251 and error message ‘Transaction 643 has been aborted.’ on server

Can someone help me?

Spring boot version: 2.3.3.RELEASE
Mongo version: 4.4.22