Your first instinct was right, wasn't it? You didn't 4-bet pre because you had some inkling or suspicion that you were up against KK or AA. I mean, you were dead on. Flop a set - then stack him because it looks like you're overplaying AQ. But unfortunately the flop basically locked QQ into the hand.
A very resonant passage from the Easy Game by BalugaWhale I'd refer to is: think of the coolers you've gotten and the hands you've held when takingthem. He was talking from preflop specifically. Even in the micros JJ is played conservatively relative to the other big pairs. It'll call modest raises, but they don't 3-bet with it as often as you'd think. How often are you coolering JJ with QQ in comparison to being on the receiving end against KK and AA?
Are you really aiming to cooler 1010? Even at the micros there aren't too many players shit enough to get themselves stacked with 1010 as an overpair.
If you who can fold overpairs when you're beat, then you're making money. Not burning it.
In the micros, players sometime suddenly open-shove preflop their whole stack. It's AA/KK 90% of the time, hoping someone wakes up with QQ/JJ/AK. The other 10% of the time it's QQ and at worst AK when they're looking to gamble.
QQ obviously isn't a trivial fold, but it's not the same hero fold as KK. I have done it before preflop and seen someone wake up with JJ behind me and get stacked preflop by what indeed turned out to be KK or AA. When someone calls my raise who I know has an extensive history of playing AA/KK by trapping postflop, I intentionally rep a missed AK to keep the pot small and usually lose the minimum.
I'd also make it 12c pre with JJ+ and AK. In this instance someone had aces, not too much you can do, but the majority of the time when you're not reraised, people will call with their pocket pairs, ace rags, etc. so make the open bigger. You know they'd reraise you with KK/AA 100% of the time, so you as the aggressor know you have the best hand. Then your c-bet is bigger in relation to the pot, and you set up pot-sized turn bets and river shoves. 6c is way too small - it's inviting the entire table to flop two pair or a set on you.