Okay I guess the "Allow computer to turn off this device to save power" option fixed my problem.
Since I disabled it (a week ago) my PC doesn't restart anymore.
Thank you very much, I'm marking this thread as solved.