Those errors typically pertain to a driver problem with the IDE controller. If the boot device [hard drive] is inaccessable, then obviously something in between the OS and the hard drive is ...
You mightn't think it, but the Windows 11 Recovery Environment is genuinely powerful.