Dark matter transient annihilations in the early Universe