you have an issue with your TCC lockup ... take it to a transmission mechanic and have it checked for codes ... a code may or may not show up, dependin on what is going on ... could be your line pressure.... could be a TCC solenoid blockage/failure (easy fix) ... or a TCC clutch wearing (requires R&R for the fix)
while it is slipping and shifting like that there is a lot of heat generated in the transmission.... and excess heat is bad