Endermen will not attack PlayerSpawned Endermites if the endermite also has the Invulnerable NBT tag
The command /summon minecraft:endermite ~ ~ ~ {PlayerSpawned:1b} will summon a "player spawned" endermite that endermen will attack. However, if an Endermite has the Invulnerable NBT tag - for example one summoned with the command /summon minecraft:endermite ~ ~ ~ {PlayerSpawned:1b,Invulnerable:1b} - it will not be attacked by Endermen.