Issue found here at the studio in some production files using dirty hacks. Ideally we could fully forbid such assignement in BPY/RNA API too, but there is no 'proper' way to achieve this without this dirty hack currenlty. So instead, check for this case and print a nice error about it for now.