Thanks for your update Subbarao,
I have noted this behavior on another case and this what they have identified the reason to be .
Due to using pdm_load to import knowledge documents and other data, some attachments had become orphaned and were causing errors when referenced.
I am not sure if this is in your case but just wanted to validate if you have such scenario in your environment?