An error occurred while updating the firmware 32
If that is the case, it probably can be fixed within to get a replacement. :) I had the same issue trying to install High Sierra on my late 2011 Mac Book Pro, in which I'd replaced its mechanical HDD with an SSD.
Visit Stack Exchange I have a Mid 2011 i Mac currently running Mac OS 10.12 Sierra.
Luckily I kept the original hard drive around, and after trying the newest installer and rebooting into safe mode several times without any joy, I just took a screwdriver and put the old HDD back in temporarily (there are good guides on ).
The installation with the original HDD completed without any problems, including the firmware update.
Make sure you delete any existing installer you might have first.
This version ran without issue first time, updating the computer's firmware and installing High Sierra.