If i fall asleep early or don't text him several times throughout the day, he gets really worried and thinks I am mad at him and just gets moody and upset and when I get upset for not being able to fall asleep or not text he says "sorry im like this" or "i know im really annoying im sorry" What can I do or talk to him about to make it stop?
He sounds insecure, but also that he knows that. Try saying what you have said here and talking properly. Whether he is able to change that or not, is a different matter though. You may have to decide whether you are willing to wait and see or whether it is too much for you.
He says " "sorry im like this" or "i know im really annoying im sorry"
This is passive aggressive behaviour. Do not enable this behaviour. The next time he says he knows he is really annoying you say ' yes, you are, I think we need to talk about boundaries'. Never excuse his bad behaviour.