HR Module error logs seem to be a bug?

I have added a fix for the same in this PR: fix: process allocation expiry by Mangesh-Khairnar · Pull Request #18853 · frappe/erpnext · GitHub.