Raising Error while using Return Components Feature

After closing work order, the Return Components button is shown
after pressing it creates stock entry with “Material Transfer for manufacture” type
it takes the same batches that I transferred for manufacturing before.
but on save it this Error is raised


I tried this process several times and returns the same issue.
if I removed batches from batch no field it will be submitted but without the original batches (it uses another batches)
Version: v15
Settings:
Items have batch nos = 1
automatically create batch = 1