There is a simple solution : don't get yourself in shallow waters...
When I sail from W'haven I hug the coast of Norway from Stavanger where it's deep and take the deep channel north of the Shetlands to get in the Atlantic. No bad surprise and always lots of water under...