Anomalous U(1) and low-energy physics: the power of D-flatness and holomorphy