How do you make a wither unable to break blocks?

This is just not possible on this edition.

This is not possible using just commands as Bedrock Edition is well known for not allowing NBT data in commands, meaning that tags like {NoAI:1b} or something would not work, nor will you be able to summon one with a custom name, these have to be applied by nametag. Sorry to disappoint.