Misfire when wet outside.

I have a 2000 x v6 manual. My xterra had a new distributor put in at 138k and I think the distributor that was put in was a low quality replacement although it does say it was made in Japan. Plug wires are about five years old. Car is now at 158k in the last 10k miles it has started hesitating a bit but not bad. Recently I’ve been having an issue where if I let it sit outside overnight in the rain then drive it in the morning it misfires and runs bad until about 10 minutes after it’s fully warmed up. I replaced the cap and rotor as well as the distributor cap seal, no difference. I’m pretty sure I’m getting water in the distributor because the bolts inside have surface rust on them. I’m thinking of just eating it and buying a new one distributor off of z1 off-road. Does anyone have any recommendations?