Hola Fernando!
Probably you already found a solution/reason.
But just in case someone else meet the same problem, I am going to share what I've done to solve it.
In my case was the Safe Control Setting from window itself.
You can avoid the alert modifying the permission:
Just press Ctrl + Shift + M, and you will be able to modify the settings, from "Limit Module Script to Safe Mode" to "Give System Access to Module Script" as you could see in the attached image.

HTH
Alex