type is not a supported pptr value
The objectReferenceValue property is used to access UnityEngine.Object types from SerializedProperties.
If you are seeing this error it is certain that the property value does not inherit from UnityEngine.Object.
Debug propertyType to determine what the type of the SerializedProperty is, and alter the code accordingly.