0. If you are in pain, stop immediately.
1. Posture: get an ergonomic assessment at work, follow it. A proper posture should not injure you. While typing your wrist should not be at an angle.
2. Stretching: physical therapy will train you to do it correctly. poor stretching will harm you even more.
3. Wrist braces help preventing injury. Ice and ibuprofen can help managing pain. But pain is useful to understand what is harming you.
4. Get ergonomic hardware. A mechanical keyboard can be softer than a regular one.