Massive Lag in Build Works Fine in Editor

Sounds to me that you have some memory (ram) problem. If you restart the PC, it also clears up the RAM therefore you will gain some access to the memory (ram) that’s the reason it is fixed for you.

The cause for this, is probably too much hard references are present at the specific time. I need you to confirm this with you first before I suggest some solution.