Chosen Solution
My MacBook Air had its main logic board replaced a few weeks ago. After I got it back, it was crashing all the time whilst using the internet browser etc. I decided to wipe the laptop and try to reinstall from new. When it boots, it boots to a folder with a question mark, then I press command and R, it loads to internet recovery fine, no crashing. I get to disk utilities and I press on reinstall OS X and I get so far to pressing reinstall but it then crashes and the only way to turn it off is to fully shut it down. I have tried every single solution, but every single time we get to OS X Utilities, the computer will just freeze. I have done this around 20 times but every single time, it freezes. I just can’t find anything that works. Thanks in advance.
You may want to create a memtestx86 usb stick for Mac and check your ram to begin with. I’ve seen Windows and Macs both crash after memory starts filling up to a point. https://www.memtest86.com/download.htm Next, I would run a Apple Hardware test: Power on the mac then immediately press and hold the D key on your keyboard. Keep holding the D key until you see the Apple Hardware Test icon. Follow through the steps. Another option, if the above tests work, is create a USB installer for OS/X – once created power on holding the Option key and boot from the USB installer. In the case, for example, say El Capitan, you should get to a dialog that will let you run disk utility – it may be that the copy of disk utility on the hard drive is corrupt.