I had the same kind of problem. For me resolving the issue was as simple as learning and using the dvorak layout. Having a different and entirely more efficient way to type completely resolved the problems I was having. This in combination with a typematrix keyboard has ensured that I never once experienced hand pain in more than ten years working with code.
Before, when using QWERTY on a regular keyboard, I reached a point where I could no longer type at all without pain. Although I code I mostly write prose and messages. After switching I can type on QWERTY without pain as the original injuries healed, but I can feel after several hours how difficult and uncomfortable it is to type on that layout.
If you're at a point where you can no longer type why wouldn't you consider changing the layout of your keyboard? Even if it's to something substandard in many ways it at least ensures you use your hands and arms in different patterns. It's also a nice exercise for the mind.
Before, when using QWERTY on a regular keyboard, I reached a point where I could no longer type at all without pain. Although I code I mostly write prose and messages. After switching I can type on QWERTY without pain as the original injuries healed, but I can feel after several hours how difficult and uncomfortable it is to type on that layout.
If you're at a point where you can no longer type why wouldn't you consider changing the layout of your keyboard? Even if it's to something substandard in many ways it at least ensures you use your hands and arms in different patterns. It's also a nice exercise for the mind.