See if you can find out the dealer's diagnosis. Such as debris in the pan, or codes, or what. They are probably right, but my 06 did the same thing at about 170k miles. Dealer found my alternator mischarging and battery was not performing. I had known my battery was going but didn't know the symptom possibilities. Replaced those and no more trans issues.
Good luck.