What are your mods? You're playing on 1.18.2, you should make sure all your mods are 1.18.2 and if your using optifine, you need to upgrade forge because no 1.18.2 optifine version are able to be played on forge 40.1.57
I see you said there were multiple beacons, so in the new forge version for 1.20, and 1.20.1, potion effects crash your game. Your crash log is the same as mine when it happened to me.