Let's start with the basics: your wrist position. Next time you pick up your guitar, check if your fretting hand's wrist is bent sharply. This is the number one cause of pain and it's an easy fix. Your wrist should be relatively straight, like you're holding an apple. Sound weird? Try it - your hand will naturally fall into a more relaxed position.