There are numerous possible ways for humankind to modify our heavenly orrery and even the Sun itself to change the grim destiny; for example, to install artificial black hole, when and if such a gadget becomes available, in its core. Charlie from the Stephen King's "Firestarter" would be helpful... she felt herself almost in the right mood to change the Sun, once.
https://phys.org/news/2023-12-black-hole-sun-1.html
Penrose ergosphere process is much more efficient; only 0.7% of hydrogen gets converted to energy in the Sun.
https://link.springer.com/article/10.1007/BF02715080
That is, with the proviso that we won't manage to leave the cradle, which I find doubtful.