The MGError codes match the LabVIEW codes in the same range so we should be able to set an error cluster using MGError so LabVIEW will give a sensible error.
This could be an Into function if possible, but it may need to be a custom function to reuse the existing handle in the error cluster.