I wouldnt touch a trans out of an LS4 car.
Don't care how many "miles" are on it.
Welp: you have an LS4 car. Goodluck.
Your best bet is a built transmission and an external cooler. see: www.tripleedgeperformance.com
Junk yard transmissions will fail just like your current one did.