**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).
// N
        // w
        // d
        // i
        // h
        SyncTransaction(tx, TxStateInactive{});
    }
}
void CWalletblockConnected(const interfacesBlockInfo& block)
{
    assert(block.data);
    LOCK(cs_);
    m_last_block_processed_height = block.height;
    m_last_block_processed = block.hash;
    for (size_t index = 0; index < block.data->vtx.size(); index++) {
        SyncTransaction(block.data->vtx[index], TxStateConfirmed{block.hash, block.height, static_cast<int>(index)});
        transactionRemovedFromMempool(block.data->vtx[index], MemPoolRemovalReasonBLOCK);
    }
}
void CWalletblockDisconnected(const interfacesBlockInfo& block)
{
    assert(block.data);
    LOCK(cs_);
    // A
    // b
    // U
    // f
    m_last_block_processed_height = block.height - 1;
    m_last_block_processed = *Assert(block.prev_hash);
    for (const CTransactionRef& ptx  Assert(block.data)->vtx) {