Hi @roujesky. The UNO R4 WiFi must be put into a special mode before it can accept an upload via bossac. As @sterretje mentioned, Arduino IDE automatically puts the board into this mode before running the bossac command. It does this by momentarily opening the serial port of the UNO R4 WiFi board at 1200 baud (this is referred to as the "1200 bps touch).
There is code in the "Arduino UNO R4 Boards" core that runs in the background of your sketch program and recognizes this "1200 bps touch" as a special signal that the board should be put into the boot mode.
There is an alternative method for putting the board into that mode. You do it by pressing the "RESET" button on the board twice quickly. After you do that, you will see the "L" LED on the board start pulsing to indicate it is in the boot mode.
Do that and then try running the bossac command again. Hopefully it will be successful this time.