While trying to flash /e/OS to my Samsung S8 (following the same HOWTO mentioned above), it ends up with “ERROR 7” and it says “Failed to mount ‘/preload’ (Invalid argument)”.
In TWRP there is also the option to wipe the preload partition. Would this probably help?
this is what the TWRP log says after the installation fails: