I think a fold there is fine. The only hand you really beat (other than AK) is JJ.

The only problem with this line is that villain probably puts you on a mid pair type hand (after your flat call of two raises PF), so he probably thinks he can take you off your hand with a good turn bet (if he wanted to be aggro with AK)

I think a fold is fine here most of the time though. His bet doesn't look like he wants a fold.