My assumption with the way damage shields work is that in the second scenario, blocking mitigation is only tallied on the damage that comes through after damage is dealt to the shield. So you won't be mitigating 5K damage while it hits your shield. You will be receiving 3K damage to the shield and receiving 2K damage to your block. So only the remaining 2K damage that spills over will be mitigated by block.