Hand 1
This should have been an easy jam preflop in my opinion. If you are going to mix in some slowplay, then do it with AA or KK, because those
hands need less protection. Obviously AQs would have called, and you would have lost even more. But other times you win her entire stack, or she fold, and you win a decent sized pot without showdown. Postflop just is, what it is. You flopped top set, she turned a flush, and she actually missed some value by not getting all the chips in.
Hand 2
Now you are so short, there is really no other play than jam preflop, and of course AK is going to call. Classic coinflip with a scenic runout, but this does not really matter, since she also win on a board like AT762 or KQ833.