New
#11
This is going to be a process of elimination. Because the problem varies for a few minutes to several hours make it difficult to point to something.
Because your keyboard looses it's lights could you use different usb ports.
If that doesn't help try a different mouse and keyboard.
Does you system have problems doing things other than gaming?
Have you use the Samsung SSD Tool box? Also is the Firmware up to date?
Support - Solid State Drives MZ-7PD256 | Samsung Memory & Storage
It would be helpful to put the brand of your power supply in your System Specs.