**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).
SyncTransaction(ptx, TxStateInactive{});
    }
}
void CWalletupdatedBlockTip()
{
    m_best_block_time = GetTime();
}
void CWalletBlockUntilSyncedToCurrentChain() const {
    AssertLockNotHeld(cs_);
    // S
    // c
    // f
    // a
    uint256 last_block_hash = WITH_LOCK(cs_, return m_last_block_processed);
    chain().waitForNotificationsTipChanged(last_block_hash);
}
// Note that this function doesn't distinguish between a 0-valued input,
// and a not-"is mine" (according to the filter) input.
CAmount CWalletGetDebit(const CTxIn &txin, const isminefilter& filter) const
{
    {
        LOCK(cs_);
        const auto mi = mapWallet.find(txin.prevout.hash);
        if (mi != mapWallet.end())
        {
            const CWalletTx& prev = (*mi).second;
            if (txin.prevout.n < prev.tx->vout.size())
                if (IsMine(prev.tx->vout[txin.prevout.n]) & filter)
                    return prev.tx->vout[txin.prevout.n].nValue;
        }