Invalid Rotor angle position

The motor while spinning gives lot of jerks and the current consumption is more, i have plotted the rotor angle and it is not coming as expected. Please suggest me how do i approach this issue what do i need to check to find the root cause. The data is captured every 50ms. Please advise.

If you rotate slowly by hand (motor unpowered) are you able to see a smooth 0-2pi movement?

Thank you for the suggestion I will try that.

There are multiple other issues i am finding i am not sure which one to solve first
I captured the log file

  1. Some of the 3 phase currents in several instances is not 0.
  2. The SVPWM sector reads 0 in several places.
    Could you please guide which one to solve first and how to proceed? Please help.