Take a Break!
This may sound simple, but when frustration sets in, take a break from the homework. When kids, and adults for that matter, get to the point of frustration, nothing is accomplished by continuing with the task. If you or your child gets to that point, go take a walk or get a glass of water. Give your brain a break. Even if it is just a quick break, you may come back with a fresh perspective.