I just recently had a problem where writes to M.2 SSD wouldn't work due to a faulty PSU. Everything else was fine.
Took me 3 SSDs, 2 motherboards and 2 PSUs to figure out what the cause of the problem was.
It was a ThermalTake TR2 500W PSU. No graphics card (integrated graphics) so 500W should have been fine.