There is nothing wrong with occasionally calling with AA preflop when IP. I actually like it here because of your preflop raise size. Big raises preflop usually mean strong aggression postflop.
I think the only clear mistake in this hand was your bet/shove on the flop.
I also don't like villain's raise size on the flop. He was clearly committing himself and thereby giving you an easy way out, but you failed to take it.