If it’s restarting itself even when you try to boot into safe mode, there *may* be a hardware issue. I’ve seen that with motherboard problems.
What model is it, out of curiosity?
It is a tiger direct Systemax AMD mother board 64