The optics are bad on 2 nutmeg goals, but he could do nothing about the second one.
Any top GK worth his paycheck would have that open leg stance and make himself big in that scenario. You don't completely restrict your lateral movement and open up scoring angles just to avoid getting nutmegged, he made the right call. Messi's precision and striking power was too perfect, couldn't have stopped it.