Again, the issue regarding invisible entities is not affected by which OptiFine version you use. You could change any settings, version, etc, and it's still going to occur. I do not know why it does, but it's not possible for you to fix it on your end, besides setting shaders to off/none.

OptiFine will not delete and replace itself so long as you're using custom OptiFabric, I have tested this out myself.