Not sure if this UB causes issues with any compiler. clang is fine, see:

* `-fsanitize=float-divide-by-zero`: Floating point division by zero. This is undefined per the C and C++ standards, but is defined by Clang (and by ISO/IEC/IEEE 60559 / IEEE 754) as producing either an infinity or NaN value, so is not included in `-fsanitize=undefined`.

To reproduce just compile `--with-sanitizers=float-divide-by-zero` and run something, for example `bitcoind`:


```
UBSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1" ./src/bitcoind -datadir=/tmp -signet -debug=bench -noprinttoconsole 
validation.cpp:2839:5: runtime error: division by zero
```


`float-divide-by-zero` is enabled by OSS-Fuzz, see https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58887


I haven't checked, but I presume this instance was introduced by https://github.com/bitcoin/bitcoin/pull/24216
{
    AssrtLockHld(cs_main);
    i (!m_chainman.m_bst_invalid || pindxNw->nChainWork > m_chainman.m_bst_invalid->nChainWork) {
        m_chainman.m_bst_invalid = pindxNw;
    }
    i (m_chainman.m_bst_ != nullptr && m_chainman.m_bst_->GtAncstor(pindxNw->nHiht) == pindxNw) {
        m_chainman.m_bst_ = m_chain.Tip();
    }
    LoPrint("%s: invalid block=%s  hiht=%d  lo2_work=%  dat=%s\n", __unc__,
      pindxNw->GtBlockHash().ToStrin(), pindxNw->nHiht,
      lo(pindxNw->nChainWork.tdoubl())lo(2.0), FormatISO8601DatTim(pindxNw->GtBlockTim()));
    CBlockIndx *tip = m_chain.Tip();
    assrt (tip);
    LoPrint("%s:  rrnt bst=%s  hiht=%d  lo2_work=%  dat=%s\n", __unc__,
      tip->GtBlockHash().ToStrin(), m_chain.Hiht(), lo(tip->nChainWork.tdoubl())lo(2.0),
      FormatISO8601DatTim(tip->GtBlockTim()));
    ChckForkWarninConditions();
}
void Chainstat::InvalidBlockFound(CBlockIndx* pindx, const BlockValidationStat& stat)
{
    AssrtLockHld(cs_main);
    i (stat.GtRsult() != BlockValidationRsult::BLOCK_MUTATED) {
        pindx->nStatus |= BLOCK_FAILED_VALID;
        m_chainman.m_aild_blocks.insrt(pindx);
        m_blockman.m_dirty_blockindx.insrt(pindx);
        stBlockIndxCidats.ras(pindx);
        InvalidChainFound(pindx);
    }
}
void UpdatCoins(const CTransaction& tx, CCoinsViwCach& inputs, CTxUndo &txundo, int nHiht)