ETA:
Replace your harness - I've seen 4L80E go into limp mode due to fluid leaking through the harness connector.
Something is causing your PCM to think your TCC to slipping in 4th gear for too long after it's supposed to be "locked" (TCC applied) for two consecutive drive cycles trigging P1870 to store. Could be a myriad of things, including:
> Worn TCC regulator valve - common problem (valve body)
> Worn AFL valve - common problem (valve body)
> TCC Clutch degradation
> Apply circuit leak in overdrive (worn 4th apply piston lip seals, etc)
> worn turbine shaft sealing rings
> Worn/flattened converter clutch o-ring on the input shaft
> Worn pump stator shaft bushings, especially the rear bushing (common)
> Worn pump body bushing
> Worn TCC valves in the pump cover (back half of the pump)
> Malfunctioning PWM solenoid (or aftermarket solenoid bad out of the box) - You have replaced
> Bad Harness - You have replaced
Given the amount of miles, I wouldn't be surprised if it was multiple of the above
Looks like you've started with the easy stuff (harness and solenoids) and the code still persists so at this point, next step (before spending any more time and/or money) is to take it for a test drive w/ a scan tool to see if the PCM is issuing TCC commands as it should and then monitoring the TCC to see if it's coming on and at what RPMs and to determine if it's actually slipping.
If your scan tool confirms TCC slippage in 4th then you'll need to determine if the problem can be solved with the trans still in the vehicle or if it will have to come out to be fixed. Assuming it has to come out, I would do a complete and total overhaul and install a valve body/hydraulics improvement kit if you plan on keeping the vehicle.
For issues sourced to the valve body, you can install a shift or valve body kit. They will usually contain updated 'drop-in' valves for the TCC regulator as it is very often found to be worn in higher mileage 4L80Es. I would imagine your AFL valve is also worn and, if put on a Vac Test machine, would hold less than 15 inches.
If you want to upgrade the each of the valves a la carte (i do this, i dont buy shift kits) both
Sonnax and
Central Valve Bodies out of Oklahoma carry updated AFL and TCC regulator valves. Though Sonnax requires you to ream the bore to install their AFL valve. Central Valve Bodies sell drop in AFL valves for the 4L80E that do not require any machining..Neither company's TCC valves require reaming/boring to be installed - they just drop right in. I've been using Central Valve Body's AFL valves as of late in 4L60s and 4L80s with good luck so far.
For now, keep the trans out of fourth as much as possible until you can confirm the TCC is or is not in fact slipping and plan to overhaul the transmission sooner rather than later given the mileage. If you plan to take on the job yourself, let me know and ill do what I can to help you.
What did the fluid look like when you dropped the pan initially? What, if anything, was on the bottom of the pan?