O(letter), go to Graphics Injection, change FakeID to 0x12345678, go back and boot. You will have to do this on every reboot until you get to the desktop. The Graphics will be slow and sluggish, fix it asap. Use google then.
Install macOS from <your hdd name>, if not, then select it on your own and boot it up, let it finish.