Frustration is a feeling, which sets when a person feels defeated, or when incapability takes control. Once this takes control nothing or no one can help, except the person himself.
A careful reasoning would definitely point at ones own shortcomings. The lack of mental strength to face defeat is one of the causes for frustration. There are also times when one sets unreasonable targets, which also could be responsible for the frustrations to set in. There is no point in blaming others for the frustration. This will only aggravate the situation and cause more mental instability.
The best way to overcome this is to analyse the causes for the failure. Analysis will be the first step to divert the mind from defeat, which will in turn give focus to a practical analyses to the problem and there by giving better corrective solutions.
Frustrations can be over come by self-belief and the determination will definitely tide over the situation.
Focus on ones strengths and work inline with capabilities and that would be the best way to avoid frustration.