Yesterday i was working normally on my mac and it got stuck, the display was frozen but the sound was working. I clicked the power button until it turned off and then i wasn't able to boot again.
I reinstalled osx but it installed osx mavericks, and it works fine, but when i try to update to macOS mojave or high sierra it get stuck in installation. I tried to install by direct installation and by bootable usb and it get stuck by both ways.
My question is if you think that is a hardware problem or is something that i am doing wrong? Do i have to install other osx before i install mojave or high sierra?
I already formated the ssd and reset the nvram and pvram and it stills happens. I don't know what to do more.
Thank you