"While managing Ghaderi, the documents allege Krishnakumar made "numerous discriminatory and harassing comments" such as "Take it easy, I have young daughters, so I know it's hard to be a woman with a newborn," or "You should spend time with your daughter," or "You should just enjoy being a new mother.""
If those are the comments you are willing to complain about in a lawsuit I am absolutely sure that you have been demoted for the right reasons.
If someone is telling you that in your role as “responsible for reporting copyright issues” you should stop reporting copyright issues and focus on “being a new mom” instead then that absolutely is an issue. Essentially you are being told that they only need your name and your role on a piece of paper for compliance in case a lawsuit rolls in and they need your head on the chopping block, and that you need to stfu and pretend like there are no issues.
If those are the comments you are willing to complain about in a lawsuit I am absolutely sure that you have been demoted for the right reasons.