The reason harry wasn't able to save dobby was because Harry couldn't utilize a spell to save Dobby in light of the fact that he had never been shown progressed recuperating spells. Straightforward things like fixing glasses and charming just go up until this point. It would have taken amazing sorcery to mend the injury Bellatrix's blade caused.