Where did you see a max value of 1440?
In Bitcoin core the maximum wallet timeout is 100000000 seconds, or about 3 years. Is your wallet different?
Please keep me posted about whether your fix works.
If you could tell me which wallet you are connecting to, perhaps I could test with that wallet.