Welcome to Geekhack!
There are many mechanical keyboard options to try to alleviate wrist pain.
Including the simple ergonomics of your workspace and, perhaps, the use of a wrist rest.
Others have pointed you at the ergonomics sub-forum, hopefully there will be some information therein to assist.