Minecraft wiki entry for How_to_get_rid_of_a_rogue_wither, associated text: Diamond or netherite armor enchanted with Protection, Projectile Protection, and/or Blast Protection. Unbreaking III and Mending are useful if said armor is low on durability, and Feather Falling IV can help in case you fall. High falls are a possibility if a wither goes rogue.