It’s a rather involved process, so I’d recommend watching some tutorials on the topic. I skimmed this one and it looks like it covers some good workflows for tracking down and addressing the issues.
Try not to let this discourage you, it’s a trap that a lot of new Unreal devs fall into. Once you get the hang of the best practices here, it’ll be easier to prevent this problem from accumulating over time.