0.4 is actually pretty reasonable already dropping it to 0.1 or 0.2 might help tighten things up but it's usually not the whole fix with GPT models. The inconsistency at that temp is often more about how the prompt is structured than the temperature itself.
I'd rather just walk you through the full fix easier to show you in context. Feel free to DM me!
@flowrpot