With MacOS, there's something called the DFU Firmware Revive/Restore, which is a deep recovery process for unresponsive Macs. To run a DFU Revive/Restore, you have to have another Mac to update or ...
When to use it, what it fixes, and the exact steps to enter or exit safely ...