If its not doing this in the editor of your game engine then its a webgl issue and u need to change it so it works with webgl.
I figured it out, its because the audio player is attached to the player but the listener is the camera, so it teleports on death