Optifine is a closed source mod and it's on them to be compatible with Open-Source Forge.
OptiForge is a hacky mod designed to allow Optifine to run on Forge without Optifine themselves actually providing the compatibility and so cannot be relied on.
I personally recommend not using Optifine at all, but if you must... please don't use OptiForge, just use a version that has a compatible Forge version in its change log, and if there isn't one, tough luck