Is understandable if bf is feeling low and doesn’t want to talk for days?

I’m giving him space but it also makes me feel very insecure. We go from talking 24/7 to all of a sudden he’s closed off and distant. I know how much of a toll depression can take on a person but I don’t know what to do. I told him I’m here and he knows that but he still isn’t talking.