Why when I try to test my game UE4 crash

Sometimes the windows closes sometimes it doesn’t