iMac shuts down during startup
To attempt to back it up you could try starting in Target Disk mode &amp; connect it to another Mac. 

It is potentially safe - as you've checked the disk already with no errors - to simply overlay a new OS on top of the existing one without disturbing any other data. Run 'Install macOS' from the Recovery partition.