XHR Parse Error, when creating controller in afterSave of Active Record in Yii 1

I have a Active Record Model say User, which creates a Controller (SyncController) and calls a syncAll method from Controller.

There is another controller (UserController) which has action disable, which we used to do a GET XHR from the Yii forms button click.

If we dont have Controller Created in afterSave method of User we dont get any error, if have the XHR call return parseError.

Quick solution or suggesion is appreciated.