Yes, you were wrong to text her. But not about anything else.
Move out, quit your job and find people in your life that will have your back. A s/o that calls you a liar isn't a relationship I'd want to be in. Working with a vindictive person is hard enough but living with then as well has got to be excruciating.
None of this is working out to anyone's benefit. Admit that and move on.