What should I do?

So i was dating this guy for a short wild but our connection was amazing we really liked each other and spent the whole weekend together it was amazing. But then that Tuesday after i guess some drama happened and he wasn’t himself but we still communicated and FT. We were supposed to hang Sunday But then this past Saturday he found out his uncle died and he was in such distress i felt bad. I wanted to comfort him but he seemed like he needed to be alone. The day after he told me that he needed space to figure out everything that’s going around him and was going to spend the next few days with his sister and that he didn’t want me to deal with the pain of what he’s going through. I felt bad but wanted to respect his wishes. Would it be bad if i sent him a text just saying I’m thinking of him and hopes he’s okay, or should i just continue to give him space. I don’t want him to think i stopped caring.