to fix the pvp problem, maybe you can just make the invulnerability also has a debuff that make you have 0 damage or 0 hit chance. So you are invincible, but you also can't kill anyone.