No you're able to leave at any time, you can just exit through the rift behind you without any consequences. If you talk you Venam, she pretty much tells you this.
Although yes, this is definitely a very tough fight but the game does make sure to give everything you need to win, you just need to get a bit creative.