Ten hands are not enough to consider villain as a wide aggro imo.
A)Your 4b sizing was good for inducing and bad if villain is gonna flat.
Are you trying to induce? That's the question.
So if you believe that villain will 5bet shove there then was a good size.
If you believe that villain isn't gonna 5bet, but flat/fold, then you should make the 4bet bigger, around 1.8m-2m.
B) If villain 5bet there then flatting is a bad idea, you will have more than 50% of your stack in the middle and you will miss the flop a lot and probably lose the pot.
It depends if you wanna play for stacks with AK 50+BB deep.
If yes then flatting is a bad idea.
If no then 4betting was not a good idea.
And you should know that at best you are chopping vs AK and flipping vs a pair. Unless villain is a maniac and makes moves like this with AQ.