Modpack sometimes crashes on multiplayer join screen
I'm trying to develop a modpack and a set up a server, but sometimes the game crasshes when on the multiplayer join screen, particularly when I leave the window to look at Chrome or Discord or something. I would like to know what is causing this and what, if anything, I can do to fix it. I don't know if this is the right place to ask for help with this issue, since it may be more of a mod issue than a server issue, but I will ask anyways.