He did nothing wrong in the first gif, in fact he did exactly what he was supposed to do there: press the attacker.
In the second gif he would have done better if he'd won the ball off the attacker, but he kept harassing the Arsenal player and slowing him down. Once the ball was passed to the...