And for some reason they then gave me a penalty even though I didn’t leave the game just keeps disconnecting me whenever I try to play competitive, all other modes work just fine
Unfortunately all disconnections and game crashes counts as leaving the match and will be penalized appropriately. The game server has no way to discern a legitimate disconnection or game crash from one that is forcefully caused by a dishonest player to bypass leaver penalties. You can learn about this policy here:
Remember if you see the message, “Lost Connection to the Server” in the title screen or the message “Failed to Connect to Server” in yellow text in the text chat box, this means there is something that disrupted your connection to the game server and not a problem with the game server itself. There can be a variety of reasons this happens including those that don’t disconnect your computer from the Internet. There is great troubleshooting to start with that can most likely resolve most issues and I encourage you to check them out here:
As always if nothing in that guide works, please start a new topic in the Technical Support forum saying you completed these steps and additional advice can be provided. Good luck!
Thank you so much for the help