iMac 2017 T2Chip failure
So I just recently tried to update my Mac from Mac os Monterey to Sonoma everything was going fine until it was installing and my screen shut off and didn't reboot, after that I got a bit concerned waited a bit maybe for it to finish but nothing ended up happening, I unplugged my iMac from the wall and plugged it back in pressed the power button and nothing happened I heard the fans come on but no startup sound and the screen was black, later on come to find out this has something to do with the t2 chip and what the update does to it, I ran though process with Apple configurator2 trying to revive but it still didn't fix anything so I took drastic measures and tried to restore and wipe all the data, the screen came back on with the Apple logo but now never fully booted to anything now it's back at when I press the power button I only hear the fans and the screen doesn't come on and now all my data is gone as well, very upset to have lost everything and now have a non functioning iMac, If anyone knows a solution, please help.
iMac Pro