Piglins are passive towards players in gold armour however if one of them is attacked they fight back in groups (during this they don't accept gold). After certain time they slow down and turn passive again.
Comments 3
I think the best solution would be if they attacked individually. But maybe it's intended or will be fixed in another way.
This behaviour is intentional. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.
I'm not sure if this is apart of the piglin's behavior though I did anger one and made the piglin chase me for a while and eventually becomes passive.