One thing that helps me when get frustrated and angry at myself is I stop the lesson or whatever I am trying to play. I start noodling making up cool sounding riffs as I go. Or if you know really simple three chord song play it. This gets my brain out of that frustration rut. I can go back refreshed to try again. Hope this helps you. Keep plugging along!