External Hard Drive disconnects during file transfer on Linux

So, I have this Western Digital 5TB portable drive (Specifically “My Passport” branding) that I have some video recordings on of me playing video games. The thing is that the files are huge (20+GB per file due to 4K HDR recording) and I’m trying to copy them to another computer over the network for editing. However, regardless of if I use the built-in 2.0 ports or added 3.0 card on the computer, when the drive is being accessed, either read or write, it randomly disconnects and then reconnects soon after. I even tried this accepted solution on AskUbuntu on two computers (one running Ubuntu 22.04 and the other running Pop! OS 22.04) but the drive continues to disconnect and randomly reconnect. How can I fix this?