CI Pipeline causes java program to randomly die

I have a public discord bot that’s powered with Gitlab and CI. Whenever I push a new change to the bot via my pipeline, the bot can randomly crash after about 10 minutes, for no apparent reason. I can start it manually, and it will run fine with zero crashes. I’m not sure what causes this at all, as this used to work fine.
I’m on GitLab.com with the current version 13.2.0-pre. My gitlab runner is running runner 13.0.0.
My VPS is a Vultr VPS with 1 copy core and 1GB ram.
Here is the .gitlab-ci.yml and here’s the script that yml files runs.

Thanks a lot, and if you need anything else let me know.