Weird Error when trying to port a plugin to v5

Hey iam running into this issue after porting a plugin to v5

This topic has been created from a Discord post (1282294804369379369) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

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