What new Act of Parliament could remove her? She'd refuse to give the Royal Assent to it, without which the bill, as it would be, would not become an Act and so a law.
But she could be removed for not complying with the agreements made by William of Orange and Mary when they became joint monarchs. If, for example, she became a Roman Catholic she'd have committed an act causing her instant dismissal.
She cannot be prosecuted for a criminal offence in the ordinary way, since she would be bringing the prosecution as monarch against herself; Regina versus Reginam is not in prospect. Charles I was prosecuted and tried for treason, pleaded as, inter alia, waging war against his own people. By that precedent, if she acted as Charles did, she too could be tried for treason (though at common law, not statute, unless the Treason Acts don't specify acting against the King/Queen as an element of the offence)