In https://github.com/elastic/elasticsearch/pull/88639 we introduced a new setting that allows configuring a maximum headroom in disk watermarks that helps reducing the waste of disk space in large disks. The disk health indicator should take that new setting into account to avoid reporting issues when there's still room for new data in the cluster. 

https://github.com/elastic/elasticsearch/blob/6ec31ed1533e6aaf8fc6dabda5e419f5dce984fa/server/src/main/java/org/elasticsearch/health/metadata/HealthMetadata.java#L193-L199

Those calls should take into account the available max headroom.
server/src/main/java/org/elasticsearch/health/metadata/HealthMetadata.java
public static final String TYPE = "health";
    private static final ParseField DISK_METADATA = new ParseField(Disk.TYPE);
    private final Disk diskMetadata;
    public HealthMetadata(Disk diskMetadata) {
        this.diskMetadata = diskMetadata;
    }
    public HealthMetadata(StreamInput in) throws IOException {
        this.diskMetadata = Disk.readFrom(in);
    }
    @Override
    public String getWriteableName() {
        return TYPE;
    }
    @Override
    public Version getMinimalSupportedVersion() {
        return Version.V_8_5_0;
    }
    @Override
    public void writeTo(StreamOutput out) throws IOException {
        diskMetadata.writeTo(out);