I think it really pays to go with an e-bike from an actual bicycle company. The Trek TQ system for example is submersible (IP67) and has a 2-year warranty, same as Bosch.
https://www.polycase.com/techtalk/waterproof-electronic-encl...
That said even ip66 is supposed to be resistant to 'jets' of water, like ~hose pressure.
Also, fwiw, I've never seen these used on prebuilt ebike components.