I hate having this feeling

My husband is mad at me and it's my fault but I suck at apologizing and now am laying in bed and can't sleep. I don't even know where to start or how.