My wits hurts while holding chords?

I’m new to the guitar and when I play chords my wrist begins to hurt. This is for simple chords like Am and C too. No idea why?