Perhaps you can use the API to modify it, else what if you delete the field and create it again?
which Dolibarr version do you run?
Should be fixed into future 19.0.4 by editing and saving again the property.
If you can’t wait, you can do this.
Clear the content into “Computed field”, the property “mandatory” should appear.
the version I run = v19.02