I remember helping a friend a few years ago who thought he had truly bricked his MacBook. There is a restore process that reinstalls the OS when an update goes wrong. I don’t recall the process now as I’ve never needed it since but it is somewhere on Apples site. I seriously doubt these laptops are truly bricked. Obviously something cause the installer to fail but there are recovery options built in that are not part of the OS.
this is probably a good place to start https://support.apple.com/guide/mac-help/macos-recovery-a-ma...