Use a specific nLockTime while creating the transaction.
This can cause conflicts if the wallet’s descriptors contain an "after" (OP_CLTV) operator.
OP_CLTV