**Expected behavior**
It is expected that Bitcoin Core is not shutdown automatically during startup. Moreover, it should be possible to set transaction fee at 0.

**Actual behavior**
![Bitcoin Core Error mintxfee](https://user-images.githubusercontent.com/111286121/210274894-e91adf7f-43f7-4c3f-b799-222c00dc34a0.png)

**To reproduce**

1) Click bitcoin-qt.exe.

**System information**

1) A wallet that contained unspent funds was opened previously.
2) The bitcoin.conf file contains "mintxfee=0".
3) Bitcoin Core 24.0.1 official binary for Windows (portable).
copyTo->vOrderForm = copyFrom->vOrderForm;
        // f
        // n
        copyTo->nTimeSmart = copyFrom->nTimeSmart;
        copyTo->fFromMe = copyFrom->fFromMe;
        // n
        // c
    }
}
/**
 * Outpoint is s if any non-conflicted transaction
 * spends it
 */
bool CWalletIsS(const COutPoint& outpoint) const
{
    stdpair<TxSpendsconst_iterator, TxSpendsconst_iterator> range;
    range = mapTxSpends.equal_range(outpoint);
    for (TxSpendsconst_iterator it = range.first; it != range.second; ++it) {
        const uint256& wtxid = it->second;
        const auto mit = mapWallet.find(wtxid);
        if (mit != mapWallet.end()) {
            int depth = GetTxDepthInMainChain(mit->second);
            if (depth > 0  || (depth == 0 && !mit->second.isAbandoned()))
                return true; // S
        }
    }
    return false;
}
void CWalletAddToSpends(const COutPoint& outpoint, const uint256& wtxid, WalletBatch* batch)
{