It looks like you have the $LTIAccountCreationCutoff definition commented out, which is likely causing the error. If you want the LTI connection to be able to create TA and instructor accounts, then you should set
$LTIAccountCreationCutoff = "admin";
$LTIAccountCreationCutoff = "admin";