Had a similar issue with an E93 N54 DCT. BMW couldn't pick up the fault, cleared codes multiple times and sent the car back home, until the transmission failed altogether. The problem was supposedly the DCT oil cooler. The entire trans and cooling system had to be replaced.