Here's a trick for fixing pain. Slow down, cowboy!
Your hand is working a neck where the notes are sometimes seemingly astronomical distances apart, and you have to stretch it a lot. I have found that playing things slowly helps me relax my death-grip during stressful passages, and when I speed up again my hand position is so much more relaxed.
Aside from avoiding obviously-awkward wrist bending, your fingers can get all tangled up especially if you work on strengthening them which can give you the ability to move them in ways that hurt. I have had this happen, so I slowed down some. I don't just mean slow down the fast passages. Slow down all passages. Make a chunk of your rehearsal time just doing things slowly with attention to exactly where you put your fingers.
With a new instrument this can get you over the learning curve of finding the feel for the new thing.