Well damn, didn't know reloading a save would work even after coming back later. Yeah, I noticed that the attacks never come from the same place twice in a row but the boss just starts spamming the attacks on low hp so much that I couldn't do it anymore. Will give it another shot later.