It seems that the light of the enchantment is not displayed correctly when changing the Piglin's head equipment to the equipment enchanted by the command.
Command:
/replaceitem entity @e[type=piglin] armor.head minecraft:golden_helmet{Unbreakable:1b,Enchantments:[{id:"minecraft:protection",lvl:5s}]}