dtparam=pciex1_gen=3
<span class="tb_red_bold">WARNING:</span><span class="tb_red">The Raspberry Pi 5 is not certified for Gen 3.0 speeds, and connections to PCIe devices at these speeds may be unstable.Refer to [https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#pcie-gen-3-0 Official Statement]</span>
Then DON'T forgot to reboot