Nowhere near that close for me and a lot more soft, but still one of these “oh shit” moments was when I decided to go swimming when waves were bigger than usual due to a coming storm. It was all fun until I realized I wasn’t able to swim back to the shore to where I can stand. Every time I tried, a wave knocked me further into the ocean and my leftover stamina kept dropping. I was freaking out and had no idea how to get out of there.
Luckily the waves went smaller for some time and I was able to swim back to where I was able to feel the ground and pushed from there.
I knew that in the worst case the coastguard or other swimmers would have jumped in but still.