Chosen Solution

I was trying to reinstall the MacOs on my old macbook but it doesnt seem to boot anymore with the current ssd. If i unplug it or use a different ssd i can boot.

I’d boot from an external source, reformat the dive, run Disk Utilizes on it and then try installing a new system from the external source. This failing, it’s time for a drive replacement: MacBook Air 11" Mid 2012 Solid-State Drive Replacement

This SSD has a known issue! Apple issues firmware fix for Toshiba SSDs in 2012 MacBook Airs & Apple Recalls Mid-2012 MacBook Air For SSD Replacement – 64GB and 128GB SSD Systems Affected Its a bit on the late side, but its possible you just don’t use your system that heavily so it took a bit of time. Sadly, Apples extended warranty program has ended for your system. Time for a new drive! OWC Aura Pro 6G SSD for MacBook Air 11" and 13" (Mid 2012)[linked product missing or disabled: IF188-104-3] The Apple SSD is a bit faster than the OWC drive, but its more expensive.