Ex passing away

I recently found out an ex of mine passed away. It’s been hard to deal with. I guess he was kind of always my “what if”. I looked him up to reach out to him truthfully and was devastated to see he actually passed. Have any of you dealt with this? How do you over come it?