There is no debug.log in my logs folder also one optifine version worked but only on 1.8.9 but I have a modpack on 1.12.2 rn that has the same issue but no optifine version worked.
The optifine version that worked was the 1.8.9 version with H5 at the end.