>the magnesium sacrificial anode cannot be removed, too close to the ceiling
I was contemplating what to do about that with my water heater, but I think maybe the procedure is that you cut it up as it comes out, if it is one long piece, and there are replacements that are segmented so you can get them back in with limited clearance.