firmware error while updating to OS High sierra
Am currently operating on mac os sierra 10.12.6 (16G1611)
My system is 13' mid 2012 bought machine.
Am not able to update my system to OS High sierra. I get an update when my system restarts to update the software which says "an error occurred while verifying the firmware"
I tried skipping the High sierra os and tried updating it directly to os Mojave. Although the same error shows up.
Kindly guide me how to resolve this issue.
MacBook Pro, OS X Mavericks (10.9.4)