Only able to compile once before unreal stops responding

I’m only able to compile my C++ code once before unreal will fail to compile and stop responding. I can make changes to my code in VS, save it, and then compile it once in unreal and it will run fine. However, after compiling the first time, I can’t compile again until I restart Unreal. I never had this problem in 4.10, and it could be because my laptop isn’t that powerful.