I'm somewhat clueless to be true. Could you post all codes that are present in your car, or a screenshot of them? Active and temporary.
The main problem is, that you already started to fire the parts canon and swapped in used parts, that could have brought additional problems with them or they are simply the wrong part, as Volvo changed some things around the transmission over time. There are different part numbers for the transmission, valvebody and so on, depending on the chassis number, if look them up in VIDA. There are also at least 5 different software numbers for TCM that I found so far. Trying to help you is like looking through a crystal ball. More or less just wild guessing. Maybe you need to visit a local Volvo specialist.