Look at it from his viewpoint: he's scared! His entire world just changed to a place he doesn't recognize (no matter how nice or suitable it is) so he's confused & trying to find familiar territory.
Be patient, give him time to settle in. You say he's 5 years old, so it's even more disruptive to him than if he was a hatchling that just changed hands. Snakes learn their way around in the wild- otherwise they don't survive- they're more at risk from predators & unfavorable weather if they can't find their safe places quickly & reliably. It might have helped somewhat to have raised his temperatures more gradually, but at this point, you might as well stay the course. I hope he does well for you, I've taken in my share of snakes needing help too.