How to fix inconsistent transfer speed with MikroTik CRS305-1G-4S+IN switch?

I have a MikroTik 5-Port Desktop Switch (CRS305-1G-4S+IN) using the SwitchOS mode, and I’m noticing throttling when transferring files at 10Gb. Before I purchased the switch, I have the Windows 10 PC connected directly to the unRAID server, and transfers were constant at around 7Gb which is the limit for the SSD to write data. However, since I installed the MikroTik switch when transferring files, the speed starts good at 7Gb, and then about 20 to 30 seconds later the transfer speed decreases all the way to 0 then picks up again, and then it slows down again and goes up back and forth like this.
What could be the problem and how do I fix to transfer speed are constant? Only two devices are connected to the switch.

What transceivers are you using to connect your PC and server?

@arclength I’m using the 2 10Gtek SFP+ DAC Twinax Cable, Passive, Compatible with Cisco SFP-H10GB-CU7M, Ubiquiti. (cab-10gsfp-p7m)

Did you ever resolve this? I had a similar issue and I resolved it by disabling flow control.