I've tried this with my old ssd and the outcome is the same, I've bought a brand new 990 pro in hopes of installing windows on it but when the setup needs to restart to finish the win10 installation this problem comes back up..1800x is 6-7 years old so I’m guessing the ssd may be going out. They aren’t very expensive so I’d say pick up another ssd. A 500gb or so shouldn’t run much, maybe about 50 bucks or so.
Also if this is a gaming pc, If you update the bios, upgrading your cpu to a 5700x or better, or even a ryzen 5 5600/5600x would be a HUGE improvement for you.