Of course taking over the Gaza side of the Rafah crossing doesn’t violate any treaty with Egypt, unless one believes that Gaza is part of Egypt. The Egyptian side is still administered by Egyptians.
Anyone who quotes “Palestinian health authorities”, ie Hamas, though the PA lies just as badly, should not be taken seriously. Not on casualty figures nor on anything else.