I did quite a bit of digging into the problem on my H3. The root cause most of the time doesn't seem to be a new switch. Several owners would remove the switch/module assembly, and replace it with a new one. It would work great for a while then reoccur. Then they'd put the old switch (which sat unhooked for days/weeks on their workbench) and BINGO! it worked again, no problems! And maybe it would be good for a while, or forever. Usually wasn't forever.
Here is what I've come up with, take it for what it's worth ..just my thoughts:
1) Battery - If the battery or connections happen to be low that seems to trigger it. Or bad ground (more on that in a second). Your issue might be an indicator of a weak or failing battery, or connections. You might have it load tested at a parts store to verify it's charged & good. Make sure connections and grounds (esp body grounds too) are very good.
2) Window Switch Module - I don't think the root cause is the actual module. On my H3's module...which is very simple to pry up & remove thankfully, I disassembled & did a little electronic analysis. It all looked good, nothing stood out. Mine had 2x electrolytic capacitors which were *at* or slightly below their rated ESR values. But they weren't toast. I replaced them with exact capacitors that measured 'good'. The switch worked for a while ....but I still had the window problem occur like you're experiencing, a time or two afterwards (couple times over many months ..not a chronic problem). At the end of the day, IDT the root problem is caused by the window switch module. Sure, if you go to the dealer and they put in a new $300 module that's been sitting on the shelf, it'll probably work right. But on many other H3 vehicles where owners did that, it didn't solve the problem long-term.
3) Bad Ground - My H3 had several water leaks (like they all do), prior to me buying it ...and even afterwards. I finally fixed the leaks. When I removed the interior and carpet to let everything dry out, one thing which caught my attention is the number of wire harness grounds all over the place, screwed to the floor. Grounds are real critical on modern vehicles. The ground on the floor below the driver's feet (closest to the driver's door module) was the only one which was VERY RUSTY due to moisture under the carpet. I cut it back a bit, crimped on a new connector and cleaned everything off so it made a good connection.
I have "Never" since (in 3 yrs knock on wood) had the window problem reoccur since I did that. I surmise that the ROOT issue with window module issues are usually poor grounds/battery connections ...and weak batteries. Not saying modules can't fail, but ... If your truck has ever had the 3rd brake light leak, or batt recently go weak/dead, there could be something like that going on. Bad body grounds (and floor gnds) etc.
.