I've got a motor on my Getaway, and the couple of times something similar has happened to me, I furled the jib, dropped the mainsail (I keep bungees on board to strap it down) and motored in.
When I had a Hobie 17 with no motor, it wasn't as easy to drop the sail (very fussy latch system), so those times, I picked a non-rocky shoreline in a direction that let me feather the sail, and went to shore.
Maybe you can heave to, to ride it out? Release the mainsheet, backwind the jib, and hold the rudders to the same side as the jib. I often do this to park the boat for lunch. Haven't tried it in high wind.
https://asa.com/news/2017/03/24/heaving-to-steps/