Medicine

A 60 year old man, who is a known case of LV Aneurysm post MI in 2017, presents with recurrent episodes of syncope. Today after having a strong coffee he developed syncope and was rushed to the hospital. What is the best way to prevent such episodes from developing again?