Are you in those gear combos at any other time? If so, do you get the same problem happening? It could be more of a cross chain / chainline issue than something that would manifest under load. But it may get worse under load, if you use those gears on flatter ground. I don't know why it'd go away, though. Hmm. Do you get any front derailleur rub?