It's a bug. Normally, dying has nothing to do with PvP tagging, and PvP tagging is a purely optional thing (and doesn't last that long). But this is a known bug. I don't know the solution right now, but it can be found in the forums (and someone else will probably mention it here, too.)