It is very hard to brick an E38 doing a write calibration. There are 2 segments that will not get written to a used E38 with HP Tuners. Segments 7 and 8 Slave OS and Engine. You can go here
https://tis2web.service.gm.com/tis2web and enter the VIN for your vehicle and the VIN for the used E38 and see if they share the same segments 7 and 8. If they do not them it will require flashing with TIS2web to get segments 7 and 8 correct for your vehicle, I would bet the TCM is OK . I have had writes fail in the middle of writing T42 TMCs and they always recover.