California Civil Code 1946.7(a) says that
A tenant may notify the landlord that the tenant intends to terminate
the tenancy if the tenant, a household member, or an immediate family
member was the victim of an act that constitutes any of the
following... (3) Stalking as defined in Section 1708.7
and stalking is "a pattern of conduct the intent of ...