This exit code can be the result of various issues, and can be difficult to pinpoint the source. Often times, it is can be caused by the game running out of memory. Check your JVM arguments, or remove any resource packs installed for this.
This might also be caused by malware, such as premieropinion. Running adwcleaner removes it
If this is not the cause, please see the support page for more info.
Note that, in some cases, doing a clean installation of the game fixes the issue.
Try the possible fixes in