How do I stop UE4 from crashing?

Check if you havent got out of ram. You have only 4 gigs which are mostly full at startup