Malignant cardiac tachyarrhythmias are associated with complex spatiotemporal excitation of the heart. The termination of these life-threatening arrhythmias requires high-energy electrical shocks that have significant side effects, including tissue damage, excruciating pain, and worsening prognosis. This significant medical need has motivated the search for alternative approaches that mitigate the side effects, based on a comprehensive understanding of the nonlinear dynamics of the heart. Cardiac optogenetics enables the manipulation of cellular function using light, enhancing our understanding of nonlinear cardiac function and control. Here, we investigate the efficacy of optically resonant feedback pacing (ORFP) to terminate ventricular tachyarrhythmias using numerical simulations and experiments in transgenic Langendorff-perfused mouse hearts. We show that ORFP outperforms the termination efficacy of the optical single-pulse (OSP) approach. When using ORFP, the total energy required for arrhythmia termination, i.e., the energy summed over all pulses in the sequence, is 1 mJ. With a success rate of 50%, the energy per pulse is 40 times lower than with OSP with a pulse duration of 10 ms. We demonstrate that even at light intensities below the excitation threshold, ORFP enables the termination of arrhythmias by spatiotemporal modulation of excitability inducing spiral wave drift.