If you are in a profession where you have more of keyboard or mouse use than this type of wrist pain problem can arise. Yes it can be due to wrong faulty wrist position and working with that wrong posture puts extra strain on your wrist which could cause conditions like CTS, muscle spasm & straining the wrist joints. Consult me online for further query
Next Steps
Firstly apply ice to the affected 3-4 times in a day for 15 mints. Secondly take break after every hour to reduce the starin and realx the wrist muscles and move your wrist in a clockwise ,anti clockwise, upwards and downwards dirction.Use wrist brace while working i.e. wrist band with thumb support .
Health Tips
Erconomic tips: Your elbow should be in 90* position, wrist in neutral position while using the keyboard