Unreal freezes every second (related with HDD)

Everything works fine in my PC except Unreal Engine. It freezes every second for a fraction of second. I think it’s related with loading. If I wait in the screen, it works fine however, if I left the screen, it makes the same freeze and I have to wait. If It’s stabilized but I add a new object to the scene, it starts the process again.

It’s annoying, because I can’t test anything and the first time I used it, it worked fine. Then my Udemy course crashed, and I turned off the pc, and when I started my computer again, the problem arose.

Every other program works well, but Unreal Engine is a mess. If I move the mouse and hover some object, it does not select it until the drop ends (that how I know its some kind of disconnection). But everything else works fine (so it’s not the PC). It may be the HDD.

Any clues or something I can d to find the problem?

I think it has to do with where the project is allocated. In this case, in an internal HDD (not SDD). If I use my M2 disk, it works well.