This is obvious - stress is motivating.
Give me a deadline in six months and I'll procrastinate for at least five of them, feeling terrible about it throughout. Give me an impossible deadline tomorrow and I become a productivity machine, with no time for anxious overthinking.