The error code you likely got was for a connection or packet loss problem. The game is unable to tell if this was intentional or not. To get the ban this has likely happened to you multiple times, so the game has leaned towards intentional. Luckily for you the first bans are not for very long, but if the problem persists there is an alley to appeal bans, but probably the best course of action is to ensure a more stable connection. Note that it may not be the connection with your device, but rather an issue with the connection from your home to the bungie servers.
Edit: if you can remember the error code, or in future make note of it, it will help immensely in tracking down these problems.
Hi there. Suspensions last 30 minutes for the first time and 1 hour for further offenses. To get unsuspended from Crucible or Gambit, you need to wait for that period to end.
If you are getting error codes when disconnecting from matchmaking activities, you can look up the error code(s) and the cause(s) in the [url=https://www.bungie.net/en/Support]Help Articles[/url] to help troubleshoot and limit your chances of further disconnects.