I don’t know what specifically you’re having trouble with on measures 25 and 26, but that’s a spot where your right and left hands need to be in perfect sync. I found that I have to use the right pick strokes (down/ups) or I’ll just make a mess of it. Follow Ben’s pick directions on those two measures just as they are shown.
If that’s not the problem and it’s your left hand giving you fits, I found that holding down the first fret throughout the whole measure makes it flow much better. If I lift the first finger from the first fret, it seems to wreck the whole lick. Keep that first fret fretted until you get to the next measure and then do the same throughout measure 26.
If you’re already doing all that, it’s most likely a spot that just needs constant repetition starting slow and gradually speeding up until it feels natural and more comfortable. I would practice those two measures over and over until the dog wants out and the wife decides she needs to go shopping!
I’ve been having trouble with Leaning On The Everlasting Arms at, ironically measure 25 since Ben posted that lesson. I’m sure it’s been over a year and I still can’t get that part to flow smoothly.
I don’t know if that was much help to you or anyone else, but that’s what seems to be working for me.