NVMe Samsung 960 evo (with adapter) + MBA mid 2013 Hello I recently upgraded my MBA with new ssd Samsung 960 Evo 250 GB. I am using adapter ("M key M.2 PCIe AHCI SSD Adapter as SSD for MACBOOK Air 2013 2014 2015 A1465 A1466 Pro A1398 A1502" from Ali). Everything worked fine - installation and running system for few days.

But now I have problems that it keeps itself turned off and now when I started MBA, I get error - folder with question mark and MBA keeps restarting. 

Is there any way how to fix this, or I need different SSD?
As long as you know that the hardware you specified is indeed compatible with your make/model of MacBook I would first look into everything being installed properly. Make sure everything is seated correctly and there is nothing that does not belong.

You may also want to take the replacement/adapter out and inspect the area around where it is installed for foreign matter (dirt) use some canned air to clean out the system and parts. Inspect for damage (use a magnifying glass!).

Reinstall everything carefully and see if it is any better.

If the same symptoms persist you are faced with possibly replacing (under warranty, hopefully) the SSD and/or the adapter. Contact the reseller and see what they say. They may just take both back. I would be inclined to do just that as there is no way of telling which part is defective.