We do not offer support for Optifine!
If you have issues with Optifine, remove it. If you want further support try the discord found on their website.
https://www.optifine.net/home
Installing Optifine with modpacks on Curseforge:
- Right click the modpack icon, select
Open Folder. - Put the
Optifine.jarinto themodsfolder. - Now start the modpack.
Tell us what is happening, we already know it "doesn't work".
menu.
then type in powershell to open it
button in the modpack profile.
in the top left.
in the bottom left.
or BETA 
is set to a folder on the correct drive
Profile Options button.

icon and then choose Java: 17.0.3.1 (64 Bit) from the list.