The issue was caused by a print job which was tried to be used even though it does not exist in the database.
In the Ticket Closing Rule, you included an action (Execute Print Task action) which is using Execute Print Task print job, however that print job is deleted or not created in this system.
When I removed the Execute Print Task print job action from the Ticket Closing rule, the problem was solved.