This problem always shows up in the warmer months. I've found if it takes extra time getting it to become ready to launch after being turned on like when getting gps lock it's going to be much more likely to give an temp warning. Slow flying or hoovering, especially over sand or pavement can also be an issue if the temps are up there. Out here in the desert it's almost guaranteed to happen in the summer, I couldn't fly here during those times without taking some precautions. I get it ready while standing under a tree or some shade if possible. The done doesn't get placed out in the direct sun until it has GPS lock and I'm ready to go. Once it's up I try to keep it moving.
It's not really much extra effort, just some precautions and being aware of the temp effect so you can avoid it. Anytime after June it's near 100 degrees here, without any precautions I'd get that warning every time I went to fly. The issue is annoying but it's manageable. If it's blazing out don't don't sit the case with the drone in it out in the sun, once you pull the drone out keep it under some cover or shade if you can, get it up and give it some alt if it's above a hot surface like pavement or sand. Get the drone moving and it will cool down to a point where the warning goes away. If it gives the warning shortly after takeoff try gaining some alt hopefully to a point where there a little more cooler air, when I launch and it's over the sand which gets very toasty, flying up about '60 is usually enough to get it into a temp where it will cool enough to have the warning go away.
Good luck.