Just some background to understand the port numbering. Start from the fact that older designs had one or two IDE ports, and each of them could have a Master and a Slave device. Now add on new SATA ports that can ONLY have ONE device per port.
So the habit became that the IDE devices were called the Primary IDE port Master and Slave devices, and the Secondary IDE Master and Slave. Or, to move toward more total ports (NOT all IDE): 1st Master, 1st Slave, 2nd Master, 2nd Slave. These are all POSSIBLE devices - not all there usually.
When SATA ports were added, many BIOS writers used words to describe their attached devices as 3rd Master, 4th Master, 5th Master.... NOTE that there are NO 3rd Slave, etc. because the SATA ports cannot have more than one device. Technically, "Master" is questionable on a SATA port.
I agree with 1haplo and you, OP. The fact that the same HDD and data cable, connected to the SATA_0 and SATA_1 ports generated error messages on "3rd Master" and "4th Master" devices says the HDD (or the cable) is faulty. I assume that you had a SATA power cable, also, connected to the HDD unit when this was done.