Old MacBook Air 3rd party SSD visibility is temperature dependent
If the original drive works inside the MacBook in any temp, then id say faulty SSD.

If not, then faulty MacBook :(

temperature based faults are usually categorised as things like dry joints, where solder between two surfaces is not correctly made and the contraction due to cold brings the surfaces in touch and heat creates expansion breaking the connection.