Nature gave us longer life spans than dogs or cats. So, if you are a life long dog or cat owner, you will suffer the loss of a friend. Probably more than once.
What is important is, while they were here, did they love you, did you love them, and did you care for them in a way that allowed them to live out their God given life spans. If you can answer yes to all, you should be at peace.
Our creator allows for parrots to live 50-75 years. Dogs? 8-15 or so. Doesn't seem fair. Dogs are wonderful creatures and make great companions.
Hang in there.
god bless you and your little pal, rainbow bridge will take care of him/her. lost my Boston back in 2020 it doesn't get easier to this day I get teary eyed bringing her up in conversation. the good news your pal is no longer suffering.