So you can spam magic while swimming to halt stamina loss while swimming.
Not really sure if it's known though this can be used to get the coral sword early and get to other places early
I've experimented with this only to delay stamina loss. How exactly are you causing infinite and what version of the game are you running?
So was on Xbox one version, all i was doing was spamming magic. Which the "you cannot use magic while swimming" was stopping the stamina from draining. Also will regenerates your stamina
Was doing runs earlier and managed to get a 1h 22m. Which I used this glitch to swim to coral sword and early fire spell.
Edit - found the journal dialogue at the start of islands gives the same effect, you can swim without losing stamina as long as that text is up