How can i fix the editor randomly freezing

i recently downloaded unreal engine to learn how to make games but every time i launch the editor it works fine for about 5 to 10 minutes then it randomly freezes i have to use task manager to close it but i realized when i go to close it using task manager its CPU usage is about 0.5 to like 1.0% My Computer is the Lenovo ThinkCentre M93p 8gb ram.Thanks

Try keeping the output log open while you’re using it.

Window → developer tools → output log

There is also a copy in

C:\Users/Documents\Unreal Projects\MyProject\Saved\Logs