Avoid light and max. Stick to default model selection in Codex. Increase reasoning effort as you go. When the model fails on even xhigh, switch model and start from medium again.