It works, but it keeps breaking
Recurring failures in a live system are usually a boundary problem, not a code-quality problem. Something crosses between the frontend, the backend, an integration or the database, and the failure surfaces somewhere other than where it started. The fix is to isolate the boundary first and change the smallest layer that actually needs changing.
Rebuilding rarely helps here, because a rebuild carries the same misunderstanding into new code. What helps is reproducing the failure reliably, then working outward from it.