My online friend hasnt been talking to me like at all recently. I ask him why and he said

"honestly, i'm just tired and any extra energy i have is being used on my friends irl. it's not u, i'm just fucking broken by this school shit and everything that comes with senior year. i text u as much as i do anyone else nowadays"

I dont really know how to respond, because I want to be sympathetic to him and give him space, but also him not talking to me is causing me so much pain. I feel like it would be easier to just not be friends, but I very much want him in my life. I really dont know what to do. How the hell do I make this situation good for both of us?