Randomly dying against Rhodes Giant
Apparently there was something wrong with the emulator.
I installed another version of PCSX2 and I noticed that the original version wasn't showing cutscenes. The new version is showing cutscenes, and after the problematic part in the question, there was a cutscene which wasn't being reproduced. This is probably what was causing the glitch.