When you add any hostile nether mobs to a team they are still hostile to the team mates including
Piglin to Player
Piglin to Hoglin
Piglin to Wither Skeleton
Hoglin to Player
Hoglin to Piglin
this problem even occurs when friendly fire is disabled through a team modification.
Duplicate of MC-172304