Feedback loops between strategies and the environment are commonly observed in socio-ecological, evolution-ecological, and psychology-economic systems. However, the impact of mutations in these feedback processes is often overlooked. This study proposes a novel model that integrates the public goods game with environmental feedback, considering the presence of mutations. In our model, the enhancement factor of the public goods game combines positive and negative incentives from the environment. By employing replicator-mutator (RM) equations, we provide an objective understanding of the system's evolutionary state, focusing on identifying conditions that foster cooperation and prevent the tragedy of the commons. Specifically, mutations play a crucial role in the RM dynamics, leading to the emergence of an oscillatory tragedy of the commons. By verifying the Hopf bifurcation condition, we establish the existence of a stable limit cycle, providing valuable insights into sustained oscillation strategies. Moreover, the feedback mechanism inherent in the public goods game model offers a fresh perspective on effectively addressing the classic dilemma of the tragedy of the commons.