Raid 5 - kernel error

I have a Raspberry PI 4 running with the SATA HAT with a 4 disk (a 2TB) setup.
The Raid is working good, but after a while the kernel throws errors …:

"kernel: md: super_written gets error=-5"

…which leads to a corrupt Raid and a complete rebuild.
PowerSupply is the one which came with the SATA HAT (I guess 60W)

Anyone having similar issues?

Hello, can you post the dmesg

will post it as soon as it fails the next time … usually it takes about 4 - 5 days with heavily loads until the error appears.

here we go:
sudo mdadm --detail /dev/md0

/dev/md0:
           Version : 1.2
        Raid Level : raid0
     Total Devices : 4
       Persistence : Superblock is persistent

             State : inactive
   Working Devices : 4

              Name : raspberrypi:0  (local to host raspberrypi)
              UUID : 77af0203:0a524086:e6b38f9a:b9ec28f4
            Events : 5975

    Number   Major   Minor   RaidDevice

       -       8       49        -        /dev/sdd1
       -       8       33        -        /dev/sdc1
       -       8       17        -        /dev/sdb1
       -       8        1        -        /dev/sda1

dmesg (relevant parts) / if you need the complete dmesg, use the link to pastebin

It suddenly starts to disconnect USB device number 5

[14819.685837] usb 1-1.4.3.3: USB disconnect, device number 5
[14819.998852] usb 1-1.4.3.3: new high-speed USB device number 6 using xhci_hcd
[14820.129551] usb 1-1.4.3.3: New USB device found, idVendor=0451, idProduct=bef3, bcdDevice= 1.00
[14820.129561] usb 1-1.4.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14820.129569] usb 1-1.4.3.3: Product: XDS110 (03.00.00.15) Embed with CMSIS-DAP
[14820.129576] usb 1-1.4.3.3: Manufacturer: Texas Instruments
[14820.129583] usb 1-1.4.3.3: SerialNumber: L1100FQJ
[14820.136114] cdc_acm 1-1.4.3.3:1.0: ttyACM0: USB ACM device
[14820.237415] cdc_acm 1-1.4.3.3:1.3: ttyACM1: USB ACM device
[14820.239168] hid-generic 0003:0451:BEF3.0002: hiddev96,hidraw0: USB HID v1.11 Device [Texas Instruments XDS110 (03.00.00.15) Embed with CMSIS-DAP] on usb-0000:01:00.0-1.4.3.3/input5

then device number 4 & 6

[35208.921340] usb 1-1.4.3: USB disconnect, device number 4
[35208.921363] usb 1-1.4.3.3: USB disconnect, device number 6
[35209.245316] usb 1-1.4.3: new high-speed USB device number 7 using xhci_hcd
[35209.386604] usb 1-1.4.3: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.60
[35209.386615] usb 1-1.4.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[35209.386623] usb 1-1.4.3: Product: USB2.0 Hub
[35209.387882] hub 1-1.4.3:1.0: USB hub found
[35209.388153] hub 1-1.4.3:1.0: 4 ports detected
[35209.725330] usb 1-1.4.3.3: new high-speed USB device number 8 using xhci_hcd
[35209.875983] usb 1-1.4.3.3: New USB device found, idVendor=0451, idProduct=bef3, bcdDevice= 1.00
[35209.875993] usb 1-1.4.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[35209.876001] usb 1-1.4.3.3: Product: XDS110 (03.00.00.15) Embed with CMSIS-DAP
[35209.876008] usb 1-1.4.3.3: Manufacturer: Texas Instruments
[35209.876015] usb 1-1.4.3.3: SerialNumber: L1100FQJ
[35209.882782] cdc_acm 1-1.4.3.3:1.0: ttyACM0: USB ACM device
[35209.984094] cdc_acm 1-1.4.3.3:1.3: ttyACM1: USB ACM device
[35209.985942] hid-generic 0003:0451:BEF3.0003: hiddev96,hidraw0: USB HID v1.11 Device [Texas Instruments XDS110 (03.00.00.15) Embed with CMSIS-DAP] on usb-0000:01:00.0-1.4.3.3/input5

complete on pastebin >> Click me <<