Hi, as Steve said, you cannot change Item Tracking setup if there are one or more ledger entries for this item.
You need to create a new item.

In addition, if you need to find a reference for automatically creating lot numbers, I hope the link below can help you.
Automatic creation of lot and serial number information cards:
https://yzhums.com/10739/
Thanks
ZHU