100% this.
The only thing I’d add is that supreme honesty is always the best policy, so if you offer up the information that your contract is coming to an end it will be seen as a positive.
Remember, they may ask anyway.
I always appreciate interviewees who are refreshingly honest with me.