mojave – Sound loop when starting the MacBook

I have a MacBook Air mid-2012 and it is looping on the boot sound, stuck on a white screen. I've formatted the ssd and installed the latest version of Mojave, but it stays looped at startup. I've also tried to reset PRAM and SMC but nothing has happened. I've tried to boot with this SSD on another MacBook and everything is fine.