This is easily mitigated by requiring password to change boot order.
I once forgot the BIOS password for my mid-2010s Thinkpad. You just desolder the flash chip and install a new one. I've even seen someone try dumping it straight from the mobo (sorry can't find TFA now).
The correct solution is to minimise the surface for such bugs to happen.