Wouldn't happen with a square taper. Much better protection from water. At least, so I have been told by someone.
As already mentioned - during 30 years of cycling daily 25-60 km, never had a square taper axle/bearing fail.
I had 1 square taper crankset fail, brand "Stronglight", pedals broke out their mounting holes, first left one, replaced the crank with another brand ready at hand, later on right one also, due to too thin (I compared to other cranks) alu around them, which must have been the reason for the brands name giving.
Had 1 HollowTech 2 fail, which was replaced by another dealer using allen keys and hammer and chisel.
And its predecessor Octalink 1, water getting into the left cranks mount caused it to loose.
Hollow Technology of the Light Religion cheating to win a sec on a mile to keep up with the cheating rest.
The axle of my replacement frame is Stronglight JP-400
since Shimano ceased its UN-55 model. I didn't like but didn't know and wasn't given other options in time, so it was to do with it.
I had read user reports that some JP-400 models had plastic instead of previously alu cups, which worried me. But the employee of the dealer of my avatar bike assured me the models he had in stock were alu so I decided to give it a try.
The bike went back in use september 2024, so 17 months now. Time will Surely Tell Once Again if Stronglights axle is better than its cranks.