Hi.
Regarding the random shut down of the pc, it was not the cpu or the Bios battery, nor the ram memory as I suspected, but the ssd drive and the power supply. Only after replacing both, it worked again.
And yet, after 4 consecutive carvings (apx 6 hours each) done without any kind of problem, on carving number five and six, I've got 2 strange errors.

First error is something that occured once in the past, but went away by its own, and that is that at some point during the finishing cut (ballnose), the z axis goes apx 5mm up (most of the time) or down and continues to cut the rest of the code. If it is up, I can come back to that point and redo the cut and fix it, but if it is down, it just ruins the whole thing. If I remember right, Rob mentioned a lose wire to be a potential cause for these, but I checked all wiring and it is all good. Besides, running the same gcode one more time, it works without this error. Seems more like a mach 3 error, maybe some noise from a misterious source.

Second error is that sometimes, the roughing cut does not fit the finishing cut. Like the first cut, took away to much material in some places. These seemed to get fixed by doing the project again or even as simple as recalculating the toolpath in artcam. Seems an artcam error but I am not sure. Maybe someone knows better.

The only things that changed to the machine is that I finaly figured out how to control the spindle speed via mach3 (pwm). It control the speed fine but when I turn on the whole thing, a relay on the bob goes on and off, like a clock, and this translates as a small rotation of the spindle each time it clicks. Moving the cnc via the pc keyboard when this clicking is on, cause small stalls on all axis. Pressing reset a few times in mach 3 seems to stop the clicking and then everything works great.
It can work without error for many hours or days, and then at some point, while running, I can hear the cnc changing its sound, and moving the z axis 5 mm above and continues to cut. Going back a few hundred or thousand lines and runing again the gcode, it works fine. It is like a temporary source of noise, but I have no clue from what causes it. I could not relate it to weather, or mains power, or time of the day, or gcode.

The only thing that it is clear is that the relay clicking started after setting the pwm spindle speed control, but not at that exact time, a few days later.

Like many other times in the past, I do not know what to do.