Hi @Zara Fraser
Likely your Network Interface Card (NIC) Is defective or malfunctioning.
When the disconnection happens, please go to Device Manager > Expand Network Adapter and look for your NIC, is there any adapter under Network Adapter has an exclamation mark (!)?
If there is, the device is likely faulty, uninstall the adapter or your NIC, restart your computer (this forces auto-reinstall), and try again, or download the latest version from your manufacturer.
An alternative is that you can buy a USB Network Adapter and connect to the internet by using that USB Adapter.
Hope this helps!
Best regards,
Nanta