If doing any of the above does not help, please upload your config file. Use the command .config export and then upload the config to https://easyupload.io/

And include the server IP

You can do the command in singleplayer, remove optifine, or you can just copy the file from .minecraft/libraries/EMC/(mc version)/configs/