Recently, the low earth orbit (LEO) mega-constellation faces serious time-varying interferences due to spectrum sharing, dense deployment, and high mobility. Therefore, it is important to study the interference avoidance techniques for the dense LEO satellite system. In this paper, the interference situational aware beam pointing optimization technique is proposed. Firstly, the angle of departure (AoD) and angle of arrival (AoA) of the interfering links are obtained to represent the time-varying interference. Then, the interference avoidance problem for dense LEO satellite systems is modeled as a non-convex optimization problem, and a particle swarm optimization (PSO) based method is proposed to obtain the optimal beam pointing of the user terminal (UT). Simulations show that the relative error of the mean signal-to-interference plus noise ratio (SINR) obtained by the proposed method is 0.51%, so the co-channel interference can be effectively mitigated for the dense LEO satellite communication system.