When my dog began symptoms of heart failure he also began having seizures. At first we thought it was a symptom caused by the heart problem, but no, it was a separate problem.
My vet prescribed dilantin (fenytoin sodium) 3 x 100mg every 8 hours.
Since then he hasn't had any seizures and has seemed quite happy.
It's an inexpensive medication in generic form so quite affordable.