It's Optifine, go into your mod folder and rename Optifne to optifine.jar.disabled. Once a new version of Forge or Optifine for 1.18.2 is released rename your optifine back to its original name. If you get the error again just follow the same steps. Hope this helps you out