If you are protected class a woman, minority, disability, veteran, lgbtq, whistleblower, age 40 or over you tell them you are being discriminated against and you don't appreciate the harassment. You send your manager, hr rep, and let it rip
If you get on a PIP you will be fired regardless of how you do. NEVER SIGN A PIP PERIOD. You demand they give you a severance that include money and benefits over a PIP. If necessary get an employment lawyer to send them a demand letter to negotiate severance. Of you don't listen to what I say you will be destroyed.