This is a backport of Core [[https://github.com/bitcoin/bitcoin/pull/17383 | PR17383]] [2/4]
https://github.com/bitcoin/bitcoin/pull/17383/commits/0109622b08887ed01a30911477ce4b8f266d4b4a
Depends on D8976
`UNDOFILE_CHUNK_SIZE` and `BLOCKFILE_CHUNK_SIZE` were moved to blockdb.h in
D7579
`MAX_DISCONNECTED_TX_POOL_SIZE` was moved to txmempool.h on D1667