UE5.4 Internal Compiler Error due to overclock

Just installed UE5.4 and kept getting internal compiler error warning in visual studio on seemingly random files.

For example like this:

and similar messages sometimes for Intel/ISPC

As it turns out this had nothing to do with software. My i9 13900k was overclocked. I set it back to Intel recommended 125w/253w, also cancelled the xmp profile on memory from BIOS.

Now all problems are resolved.

Just posting this because it might help someone. It was not a very obvious solution to me.