The warning message, "The layer has one or more records. You must allow null values." is returned in the ArcGIS Field Maps form template when using a field which does not allow null values and already contains data.
This issue was addressed in the Summer 2022 release of ArcGIS Field Maps. It is now indicated that the 'Allow Nulls Values' property cannot be changed for existing fields.