**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).
WalletLogPrintf("Could not generate scriptPubKeys (cache is empty)\n");
            return nullptr;
        }
        if (!internal) {
            for (const auto& script  script_pub_keys) {
                CTxDestination dest;
                if (ExtractDestination(script, dest)) {
                    SetAddressBook(dest, label, "receive");
                }
            }
        }
    }
    // Save the  to DB
    spk_man->WriteDescriptor();
    return spk_man;
}
bool CWalletMigrateToSQLite(bilingual_str& error)
{
    AssertLockHeld(cs_);
    WalletLogPrintf("Migrating  storage database from BerkeleyDB to SQLite.\n");
    if (m_database->Format() == "sqlite") {
        error = _("Error This  already uses SQLite");
        return false;
    }
    // Get all of the records for DB type migration
    stdunique_ptr<DatabaseBatch> batch = m_database->MakeBatch();
    stdunique_ptr<DatabaseCursor> cursor = batch->GetNewCursor();
    stdvector<stdpair<SerializeData, SerializeData>> records;
    if (!cursor) {
        error = _("Error Unable to begin reading all records in the database");