Galaxy S8 SM-G950F "only official released binaries are allowed to be flashed (recovery)"

Not using recovery mode, .

It is possible even complicate using Heimdall

Flashing Samsung Firmware with Heimdall
.
Flashing Samsung Firmware with Heimdall Frontend

It is easier using Odin

Finaly, i am not shure if reflashing stockOS will be usefull in your case.
as you said :