Impact of the cosmic variance on H0 on cosmological analyses