If you add a GDPR Consent field to anything other than a node, user, or profile, it will result in a hard fail: "The website encountered an unexpected error. Please try again later."
The error in the logs is this: