Whenever I am running modpacks on curseforge or using mods on the official launcher using fabric I always face this issue. I also get the red notices on the bottom that says something about offline mode due to connection. I sometimes have to restart the launcher multiple times to get it to work since it almost never works the first time. Is this usually caused by a poor wifi connection or something else?
Launching the game failed