Mac won't startup even after complete restore
Well, 4 days ago I force shutdown my mac because it was really slow and I wasn't able to turn it off as always. One day after I turned it on but the mac never finished starting up. So I ran first aid but it said that there wasn't nothing wrong with it. I decided to fully restore the mac so I formatted the HDD in recovery mode and also reinstalled the OS (Sierra). The OS was installed but never started up (2 days waiting) so I force shutdown again and then I turned on the mac again in verbose mode. It gets stuck at pci pause: sdxc. I already ran first aid, scm, restarted PRAM, even reinstalled again after formatting again and nothing works (I can't boot SAFE MODE because it gets stucked) already ran CMD+D and it says that nothing is wrong, also SMART status verified. If someone could help me I would really aprecciate because I have done hours of research and nothing works.
Specs: iMac 27inch late 2012
1tb hdd
Intel i5
8gb ram