Weird Error when trying to port a plugin to v5

Any idea where i have to look into that can cause this kind of error? This happens when i try to create a new collection item that has my custom field in it