I don't know which profiler you installed, so how could I possibly know how to use it... please look at the documentation or quick start guide or whatever for the profiler you installed
Does this happen without Optifine? If not then it's not a Forge issue and the Optifine people need to stop blaming the open-source project for the bugs in their closed-source project.
iirc you listen to one of the gui render events and (after some checks of the phase and such to make sure it's the health bar being rendered at that moment) set it to cancelled to skip vanilla's rendering of it