Error are reported when using a module containing c-script

I built the DBSRC circuit model,and it could run in the open loop mode using the Pulse Generator module,but when I built the closed-loop simulation using the PWM generator,the c-script in the PWM module reported an error:source file is not valid UTF-8.
I would like to know why this error occurs and what I need to do?

Is the C-Script block your own implementation or one from the PLECS Library? Can you share a representative model?