Peter was pretty smart - well smart enough to call out to Jesus, Lord save me!
In life these things we think are horrifying and terrifying are just things to have us take our eyes off Jesus. It is a military strategy - a diversion to keep you moving in an unproductive direction away from your mission directive. Keep your eyes on Jesus. Keep the faith.