This is why I don't think that there is much of an issue with the screw hole, yes it is weaker, yes there is a chance but the chamber area of the gun is never tapped, it is always ahead of this where the pressure is lower. Since the bullet is already moving by this point the pressure is not at its peak as it would be the instant before the bullet begins its trip down the barrel. This is why you see pressure graphs with spikes, the highest peak is at the point where the gasses have built up their maximum pressure before the bullet moves.
Stainless steel though can corrode, it does it all the time it just does not go as soft as iron oxide (rust) or as quickly. You can get pitting in stainless, you can get creep corrosion in stainless and you can get galvanic corrosion in stainless, the galvanic is the fastest and the worst. Galvanic corrosion is cool though, if you have 2 materials with very different internal charges one will corrode thereby keeping the other safe. Since this has to be in an electrolyte they use this technique for ships hulls and pipeline systems. Blocks of zinc are bolted to the ships hull, the zinc will corrode and protect the steel. They tried this in cars but air does not have enough electrolyte in it to protect the car and cars have tons of isolators in it so keep this idea from working too well.
Back to the original post, if you have the hole open you can get trapped water in there and start to rust the steel, this rust can work its way in and pit heavily which could cause a problem but I still highly doubt that would happen in a real world situation. Proof testing of barrels is required on all modern firearms, hence the "Proof Marks" on all firearms, in the early days you can link the age of a firearm to the stamp they used at the proof houses.
These proofs are significantly higher than the standard operating pressure of the firearm, this is why I cannot believe that a tapped hole (done properly and not too hot) could cause any failure irrelevant to if it were filled or not. That being said if you wanted to tap a thin walled barrel like a shotgun the gunsmith may advise against it due to the risk of going through the barrel. I have a 410 that I had sights put on for use with slugs and the gunsmith tapped the hole at the muzzle and dovetailed the rear because his machining practices lead to a greater control of depth on the dovetail and no risk of causing the metal in the barrel to press down into the barrel.