@Daniel Apologies for the delay in reviewing this post, researched on your ask what I can notice is RegistryEvents or SecurityEvent do you have schema defined in your security portal, this query worked - DeviceProcessEvents for you because there is a table defined for the same, (https://security.microsoft.com) below is the screenshot from my portal, would recommend when you run these queries match the tables which within the schema section of your portal and see if this suggestion helps to answer your query.
Reference:
[https://video2.skills-academy.com/en-us/microsoft-365/security/defender/api-error-codes?view=o365-worldwide#:~:text=by%20angle%20brackets.-,Error%20codes,-Error%20code
Understand the advanced hunting schema
Let me know if you have any further questions, feel free to post back.