Since you created 2nd transaction manually (and assumption where both transaction uses same input) rather than use RBF feature, most likely many nodes have old transaction on their mempool, which cause your 2nd transaction rejected.
Have you tried to search address on your wallet on blockexplorer and see whether it has unconfirmed transaction which you cleared with '-zapwallettxes=1'?