In this state, the bootloader’s secure boot policy rejects any binary not signed by Samsung’s production key. Your custom TWRP or patched boot image is effectively a foreign invader.

Believe it or not, USB 3.0 ports and cheap cables cause Write operation failed . Use a USB 2.0 port and an original Samsung cable.