The final boss of The Legend of Heroes: Trails in the Sky First Chapter was probably the longest war of attrition I've had to have with a boss. I was only one level under the max too I think, so it was just some really bad rng I think. A friend of mine was watching and didn't think I'd make it once I started getting caught in a loop of: A character dies, I revive them, they get killed immediately afterwards before I can heal them more, heal remaining characters, try reviving again, repeat.