new MT Switch Cant stay connected to internet or winbox

just purchased a MikroTik CS305-1G-4S+1N. i connected it to my netgear router and set the ips, connected my desktop to the MT switch and ran a speed test, got what i expected then after a few minutes download speeds went to less than a mbps and eventually cut out now i cant even connect to the switch for more than a few minutes without a disconnect, ive tried connecting via the desktop connected with sfp+ and with a laptop connected via ethernet but no dice, any help/advice would be appreciated as i am new to this. i have updated drivers on the desktop and seeing as i was temporarily able to connect to the internet via switch–>router–>modem i think the issue is somewhere in the switch

Could you please add a simple network diagram so we can see the topology and all the IP addresses ?
Also you could export the config with hide-sensitive…

my cards are: XG-C100F
connected to the switch via: https://www.amazon.com/gp/product/B071KWNFP3/ref=ppx_yo_dt_b_asin_title_o01_s04?ie=UTF8&psc=1

I would advise you to reset the switch to default configuration and then try again without changing absolutely nothing…
Make this test and see if you get the same behavior…
Also, there is no CS304… Maybe you mean CRS305 ?

i have tried default configuration with no luck, its random as t owether or not i get internet connection through the switch and even when i do it slowly goes down until i completely lose connection and cant ping the router from the desktop

A switch is a switch… if you have the default config, made sure all ports are in one bridge, and still no internet then your problem most likely is not in the Switch…