Dear Juan
As there is a inconsistency in the stock , if nothing is working try to implement the Note 48815 and try to clear the material to unrestricted stock.
You may use 122 and bring it back with correct batch. The issue is that you cannot simulate this case in your test system.
Regards
Gajesh