[Samsung Galaxy S8 Questions and Answers] twinsniper:
"Only officially released binaries..." error and I can't flash the stock firmware

I sort of bricked my phone (i think this is considered bricked anyway) after rooting it and getting the "only official binaries allowed" message. I tried to flash the stock firmware via odin, and it was stuck at "NAND write start" with the box reading "set partition". The only options ticked in odin were f.reset time and auto reboot. I'm really scared I've messed it up permanently somehow, please help if you can.

Model: SM-G950F, Exynos (I don;t know what other info to include or how to find that info without my phone on, if anything is needed, please tell me and Ill try and find it)

LOG:

<ID:0/005> Added!!

<OSM> Enter CS for MD5..

<OSM> Binary Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<OSM> Enter CS for MD5..

<OSM> Binary Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<OSM> Enter CS for MD5..

<OSM> Binary Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<OSM> Enter CS for MD5..

<OSM> Binary Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/005> Odin engine v(ID:3.1100)..

<ID:0/005> File analysis..

<ID:0/005> SetupConnection..

<ID:0/005> Initialzation..

<ID:0/005> Set PIT file..

<ID:0/005> DO NOT TURN OFF TARGET!!

<ID:0/005> Get PIT for mapping..

<ID:0/005> Firmware update start..

<ID:0/005> SingleDownload.

<ID:0/005> sboot.bin.lz4

<ID:0/005> NAND Write Start!!

UPDATE: tried again, three lines were added

<ID:0/005> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

<ID:0/005> Removed!!

I also tried it on another machine, got the same thing including those three lines but in a different order:

<ID:0/007> Get PIT for mapping..

<ID:0/007> Firmware update start..

<ID:0/007> NAND Write Start!!

<ID:0/007> SingleDownload.

<ID:0/007> sboot.bin

<ID:0/007> FAIL!

<ID:0/007>

<ID:0/007>Complete(write) operation failed.

<OSM> All threads complete. (succeed 0 / failed 1)

<ID:0/007> Removed!!

In addition, I'm not certain if this was there before, but a line in my download mode says:

"SW REV. CHECK FAIL(BOOTLOADER) DEVICE: 3, BINARY: 2"

I saw a similar line on one of the threads, so I realise that may be important

Thanks for any help in advance

--End Update

Exact steps taken to root the phone:

I decided to root my phone via magisk. I installed TWRP via odin, didn't quite immediately boot into recovery, so I flashed it once more, and this time managed to. I kept it read only, and then formatted the phone via TWRP, rebooted into recovery again, flashed the no-verity file (no-verity-opt-encrypt-6.0). I did not flash that RMM file I've seen after looking for solutions, and then rebooted my phone. It worked fine, magisk was installed, I went through the initial setup, restored my stuff from a backup etc. and then, I tried to install the xposed module in the magisk repo. Rebooted, and got the whole "Only official released binaries are allowed to be flashed" message and couldn't boot up past the initial "samsung galaxy 8 - powered by android" screen, nor into my recovery. So, I went looking for solutions, and did something dumb. I tried to flash this file here (Nougat G950FXXU1AQL5 bootloader) before restoring the original firmware. I'm not sure what problems that might have caused, and the flash failed anyhow, but I don't know still. Moving on,