XR250, if 2018 IRC is the governing code, Section R317.1.1 does say 18 inches from "exposed ground" in a crawl space, so are you sure that a vapor barrier does not mitigate this requirement? Personally, I would not favor joists closer to the ground than 18", but technically it might be OK with a vapor barrier per the code. It's a question of interpretation I guess, which is ultimately up to the building official. I would say that the same (interpretation by building official) would apply for an alternative like painting the joists. Personally, I don't think painting should be considered a viable mitigation strategy, unless it's some serious marine grade paint or something and there is some data to back it up. This seems like one of those situations where the offending party should have known better, and should have to eat their mistake and redo it correctly.