Truly, the best thing you can do is receive professional help from a behaviorist AND a veterinarian for anti-anxiety meds, especially during heart worm treatment.
I would look into food puzzles, Kong toys, brain teasers, anything that works his mind during his down-time. "Find it" games, snuffle mats, anything enriching. Reduce his meals, and give him several enrichment items with bits of food in it throughout the day. Good luck!
#PetBehaviorandTraining