well, this will depend of the error, i guess you mean the errors that appear when loading a script, that errors are just and advice of bad syntax in your code, just for advice you that what you have done it won't work, in that case it won't cause lag because that piece of code it's not working.