I feel like I mitigate this well by just running in a “plan” mode and really understanding everything it does and being careful to test every piece
That's the thing, currently people focus on using AI for code but you can use AI to help you in the other steps as well.
You can use it to discuss about what you should build, identify edge cases, ask you questions to force you to take decisions, etc.
Yea I spend a lot of time in plan mode, annotating/iterating on plans before I feel good to hit go.