Honestly if it has had repetitive issues, I would consider looking at different vehicles or consider an off road tune to eliminate most of the common issues of these trucks. 25-27k trade in sounds like Id be selling mine
I think you're well beyond being able to pursue the lemon law, but if the problems are constant, I'd look at selling or trading. I've always felt like passing on a known shitty truck to another person without telling them, is pretty douche-worthy, however trading it in to a dealership is not so much. Ultimately the dealership will sell it to someone as well, but that person might have a better recourse with a short warranty. Certainly your choice, but as stated, I wouldn't keep messing with it.