My first pup had hydroencefelis... He had horrible seizures and he passed away

He would freeze and just stare, convulse violently, foam at the mouth, and lose control of bodily functions.(pee/poop). The episodes lasted about 15 seconds. It was absolutely devastating to watch. I only had him for 2 days and had to take him to the vet. They did a bile test on him and and all kinds of blood work and brain scans. The seizures happened very frequently. Very heartbreaking. I hope your pup isn't going through anything like that.