Crashes are no fun, but 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:
Now for crashes we may be able to help identify, correct, and prevent that crash from happening again, but we need details to it. For example the specific error message is very helpful. Or if you got a dialog that looks like this:
Please consider sharing the log number below the form. Alternatiely these steps may help: