You need to focus on your daughter and your own happiness and health. If you can’t feel fulfilled alone, you need help. Your daughter needs to see you model healthy relationships so she doesn’t repeat your patterns when she is older. Your relationship has been Rocky from very close to the beginning, but you moved in anyway. Why? You say you knew he wasn’t right. You need to listen to that intuition a lot more.
Get professional help if you can, get healthier about relationships and strong on your own and try to focus on what your daughter needs. Good luck.