I have had to replace the window switch on the passenger door twice. It will work when I install a new switch for awhile then it fails can still operate from the drivers side. 2017 hd10 max
it seems to be a common problem with them, even on the newest machines. I dont have one with switches but would think a differnent brand might be better or at least cheaper than the OEM switch. Does it get wet or something? maybe it can be sealed off better or have a silicone cover of some sort to shield it from getting gunk in it.
My suggestion is to try to find a different brand of switch from some other mfg.