Do you have a system that supports PCIe AER on an UEFI level and is the P5800X connected via CPU PCIe lanes?
Getting PCIe Gen4 SSDs to “work” with M.2-to-U.2 adapters, SFF-8639 for a direct SSD connection or 8643 cables for a backplane isn’t “hard”, the pain comes when you look at error logs.
On Ryzen systems only CPU PCIe properly supports AER and doing a standard CrystalDiskMark benchmark run with a Samsung PM1733 that tops off at 7.400 MB/s sequential read causes ca. 50 PCIe errors with passive adapters and cables without PCIe redrivers (best scenario I’ve seen so far). 
In Windows these errors are logged as WHEA ID 17 entries.