How to fix lag on my engine?

It is lag after sometime of my work. It smoot at first but sometime it so laggy. After I restart the app it happen like that again. I have no idea how to fix this. I just start using unreal today.
My spec:

  • I5-12400F
  • RTX3060TI
  • RAM 16