Why do I get these troughs near edges?

I’ve calibrated flow rate and dynamics. Any ideas?

no one has any idea what’s going on here?

Looks to me like your flow dynamics number is incorrect. Double check as it is very common that people get the decimal place in the wrong position. Often this will manifest as infill pulled back from the wall but it seems like it is over extruding in your situation.