just been having this issue myself it's possible that the current version of optifine isn't compatible. OptiFine 1.19.2_HD_U_H9 says its compatible with Forge 43.1.1 but direwolf20 1.19 is on forge version 43.1.57. and the preview versions currently go up to Forge 43.1.52 so just got to wait for...