if you broke up with him, I imagine there are or were other deeper issues going to but in relation to the incident, it seems to me that you were being considerate of him and there's nothing wrong in that.
What went wrong? He was irritable, moody and wasn't very good at handling being tired and took it out on you, there really isn't anything deeper going on there.