Tension question.

When I’m practicing (I’m using Yousician) I get super tense and my heart rate really jacks up. ESP if I’m getting frustrated with a passage. Do you have any advice for trying to stay relaxed during sections. I’m a beginner, if that isn’t obvious.