I agree with William MG. Muscle memory has to be a huge part of those fast chord changes and that flurry of notes in a solo. Break it down into small pieces and let them build. Force yourself to walk away if your gettingg too frustrated and just know when you pick back up everything will be fresh and along with the attitude change, you'll have it mastered to a greater degree.