Thermodynamic constraints and exact scaling exponents of flocking matter