Whirl Islands

I just used Relic Song to get the Gyaradosite from Whirl Islands. However, I am now stuck in the middle of the ocean. I don’t know how to get out.
image

Use fly or faint all your pokemon via the dex nav’s memory chamber.

Thanks