Following an incident (T263842) where there was a duplicate entry on ipblocks table, it was seeing that the writes uses INSERT IGNORE:
INSERT /* MediaWiki\Block\DatabaseBlockStore::insertBlock */ IGNORE INTO `ipblocks`
INSERT IGNORE will silently ignore errors and the code might re-trigger the same action, which can lead to duplicate entries errors.
We are not fully sure if this was the cause of the above incident, but it is definitely recommended to re-evaluate if we really need to use INSERT IGNORE or it can be switched to a normal INSERT.