Easy fix, which I have had jobs do, is to add an additional sentence to every coding challenge:
We don't expect you to complete the challenge.
It's not necessary to complete it to see if someone can code, and seeing the 75% done result and having a window to the thought process used, is just as valuable (or more) than a pass-fail evaluation.