A novel constraint to prevent local overheating is presented for use in topology optimization (TO). The very basis for the constraint is the Additive Manufacturing (AM) process physics. AM enables fabrication of highly complex topologically optimized designs. However, local overheating is a major concern especially in metal AM processes leading to part failure, poor surface finish, lack of dimensional precision, and inferior mechanical properties. It should therefore be taken into account at the design optimization stage. However, including a detailed process simulation in the optimization would make the optimization intractable. Hence, a computationally inexpensive thermal process model, recently presented in the literature, is used to detect zones prone to local overheating in a given part geometry. The process model is integrated into density-based TO in combination with a robust formulation, and applied in various numerical test examples. It is found that existing AM-oriented TO methods which rely purely on overhang control do not ensure overheating avoidance. Instead, the proposed physics-based constraint is able to suppress geometric features causing local overheating and delivers optimized results in a computationally efficient manner.