I second (or third now) that travel on typical mechanical switches is anecdotally sub-optimal for my RSI. Membrane dome switches with a lot of travel are worse, but membrane dome switches with almost no travel seem to be better.
Ironically the worse keyboard I've used for it also happened to be an "ergonomic" keyboard (from the 90s, or maybe early 2000s) with keys tilted outwards. I think partially because of the positioning, and partially because it had membrane switches with a lot of travel.