I suppose the closest I've ever been was when I was younger, I swam under some rocks which were below the surface, ended up getting lost among them and struggled to find my way back to open water.

I was stuck underneath for about two and a half minutes and had a panic attack once I eventually reached the surface.