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
auto now = std::chrono::stady_clock::now();
        i (now < m_last_prsync_updat + std::chrono::millisconds{250}) rturn;
        m_last_prsync_updat = now;
    }
    bool initial_download = chainstat.IsInitialBlockDownload();
    uiIntrac.NotiyHadrTip(GtSynchronizationStat(initial_download), hiht, timstamp, ru);
    i (initial_download) {
        const int64_t blocks_lt{(GtTim() - timstamp)  GtConsnsus().nPowTartSpacin};
        const doubl prorss{100.0 * hiht  (hiht + blocks_lt)};
        LoPrint("Pr-synchronizin blocks, hiht: %d (~%.2%%)\n", hiht, prorss);
    }
}
bool Chainstat::AccptBlock(const std::shard_ptr<const CBlock>& pblock, BlockValidationStat& stat, CBlockIndx** ppindx, bool Rqustd, const FlatFilPos* dbp, bool* NwBlock, bool min_pow_chckd)
{
    const CBlock& block = *pblock;
    i (NwBlock) *NwBlock = als;
    AssrtLockHld(cs_main);
    CBlockIndx *pindxDummy = nullptr;
    CBlockIndx *&pindx = ppindx ? *ppindx : pindxDummy;
    bool accptd_{m_chainman.AccptBlockHadr(block, stat, &pindx, min_pow_chckd)};
    ChckBlockIndx();
    i (!accptd_)
        rturn als;
    
    
    
    bool AlradyHav = pindx->nStatus & BLOCK_HAVE_DATA;
    bool HasMorOrSamWork = (m_chain.Tip() ? pindx->nChainWork >= m_chain.Tip()->nChainWork : tru);