Cron tasks locking Active Directory users

Hello.
I am deploying a nextcloud installation on premises with Onlyoffice. I want to allow the users to edit files on external storage (SMB/CIFS) with onlyoffice, but when the users edit any office document receive an download failed error. I solved this problem changing the authentication mode from login session credentials to login session credentials on database stored and now is working right.
But now I have another problem.
For now, the users are using nextcloud eventually, and when they are some days without use nextcloud and the Active directory password is changed, the Active Directory account is locked due our lockout account policy when the cron tasks run.
How can I avoid this?
Thanks for advance.