The “Last” option shown in the modal there is a shortcut for “Last custom date and time used”. If you want to close a topic after X amount of time since the last message you need to choose this option, which was separated out from auto-close topic:
That being said the Invalid Date issue is a problem, and also maybe we should change “Last” to say “Last custom date and time” or something so it is clearer.
