the computer seems to be failing to perform IO tasks on my HDDs

My HP Elitedesk 800 G3 is suffering from (repeatedly for months)

[ 1069.566914] ata3.00: exception Emask 0x50 SAct 0xc SErr 0x4890800 action 0xe frozen
[ 1069.566935] ata3.00: irq_stat 0x08400040, interface fatal error, connection status changed
[ 1069.566942] ata3: SError: { HostInt PHYRdyChg 10B8B LinkSeq DevExch }
[ 1069.566954] ata3.00: failed command: WRITE FPDMA QUEUED
[ 1069.566960] ata3.00: cmd 61/28:10:d0:c4:25/00:00:04:00:00/40 tag 2 ncq dma 20480 out
                        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[ 1069.566982] ata3.00: status: { DRDY }
[ 1069.566990] ata3.00: failed command: WRITE FPDMA QUEUED
[ 1069.566994] ata3.00: cmd 61/08:18:c0:c4:25/00:00:04:00:00/40 tag 3 ncq dma 4096 out
                        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[ 1069.567014] ata3.00: status: { DRDY }
[ 1069.567024] ata3: hard resetting link
[ 1073.367870] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1073.369619] ata3.00: ACPI cmd f5/00:00:00:00:00:e0(SECURITY FREEZE LOCK) filtered out
[ 1073.369635] ata3.00: ACPI cmd b1/c1:00:00:00:00:e0(DEVICE CONFIGURATION OVERLAY) filtered out
[ 1073.371558] ata3.00: ACPI cmd f5/00:00:00:00:00:e0(SECURITY FREEZE LOCK) filtered out
[ 1073.371573] ata3.00: ACPI cmd b1/c1:00:00:00:00:e0(DEVICE CONFIGURATION OVERLAY) filtered out
[ 1073.371597] ata3.00: configured for UDMA/100
[ 1073.382317] ata3: EH complete
[ 1203.274860] ata1.00: exception Emask 0x50 SAct 0x400 SErr 0x4090800 action 0xe frozen
[ 1203.274878] ata1.00: irq_stat 0x00400040, connection status changed
[ 1203.274886] ata1: SError: { HostInt PHYRdyChg 10B8B DevExch }
[ 1203.274898] ata1.00: failed command: READ FPDMA QUEUED
[ 1203.274904] ata1.00: cmd 60/08:50:70:28:81/00:00:39:00:00/40 tag 10 ncq dma 4096 in
                        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x50 (ATA bus error)
[ 1203.274926] ata1.00: status: { DRDY }
[ 1203.274938] ata1: hard resetting link


[ 1204.209919] ata1: SATA link down (SStatus 0 SControl 300)
[ 1204.321215] ata1: hard resetting link
[ 1206.198946] ata1: SATA link down (SStatus 0 SControl 300)

i am using Ubuntu 24.04.4 …. the five HDDs are restarting randomly during IO attempts… i tried connecting 1820uF 25v capacitor on the rails of SATA Power (12v & 5v) to calibrate any noise on the power of the HDDs but didn’t work and tried to use the option on /etc/modprobe.d/libata.conf : `options libata 1.5g` and on grub `libata.force=1.5g` but didn’t work
please note that a techinican attempted fixing the IO/PCH chip (or BIOS) earlier as the pc was struggling to power on and the fan was spinning very fast without any sign of data and the technican says (i don’t believe him) that he replaced that chip but i think that he messed up with the chip’s legs… and that my HDDs are second-hand/used and that i am using a short SATA cables (of a good brand)